Skip to content

Commit

Permalink
Update MacOS ci for uv
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliottKasoar committed Dec 13, 2024
1 parent f9fb8d9 commit 1189b1e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,22 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.5.7"
python-version: ${{ matrix.python-version }}

- name: Install python dependencies
run: |
source ~/.zshrc
poetry env use ${{ matrix.python-version }}
poetry install --with dev --extras all
- name: Install dependencies
run: uv sync --all-extras

- name: Run test suite
env:
# show timings of tests
PYTEST_ADDOPTS: "--durations=0"
run: |
source ~/.zshrc
poetry run pytest --run-extra-mlips --cov janus_core --cov-append .
uv run pytest --run-extra-mlips --cov janus_core --cov-append .
- name: Report coverage to Coveralls
uses: coverallsapp/github-action@v2
Expand Down

0 comments on commit 1189b1e

Please sign in to comment.