@@ -18,34 +18,30 @@ jobs:
1818 strategy :
1919 matrix :
2020 python-version : ["3.12"]
21- platform : [ubuntu-latest]
21+ platform : [" ubuntu-latest", "windows-latest" ]
2222
2323 runs-on : ${{ matrix.platform }}
2424
2525 steps :
2626 - uses : actions/checkout@v4
27- - name : " Set up Python"
28- uses : actions/setup-python@v5
29- with :
30- python-version : ${{ matrix.python-version }}
3127
32- # We do not use the cache action as uv is faster than the cache action.
33- - name : " Install dependencies "
34- run : |
35- curl -LsSf https://astral.sh/uv/install.sh | sh
36- uv pip install --system --upgrade --editable .[dev]
28+ - name : Install uv
29+ uses : astral-sh/setup-uv@v3
30+
31+ - name : Install Python
32+ run : uv python install ${{ matrix.python-version }}
3733
3834 - name : " Lint"
3935 run : |
40- pre-commit run --all-files --hook-stage commit --verbose
41- pre-commit run --all-files --hook-stage push --verbose
42- pre-commit run --all-files --hook-stage manual --verbose
36+ uv run --all-extras pre-commit run --all-files --hook-stage commit --verbose
37+ uv run --all-extras pre-commit run --all-files --hook-stage push --verbose
38+ uv run --all-extras pre-commit run --all-files --hook-stage manual --verbose
4339
4440 - name : " Run tests"
4541 run : |
4642 # We run tests against "." and not the tests directory as we test the README
4743 # and documentation.
48- pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests . --cov-report=xml
44+ uv run --all-extras pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests/ . --cov-report=xml
4945
5046 - name : " Upload coverage to Codecov"
5147 uses : " codecov/codecov-action@v4"
0 commit comments