Skip to content

Commit 1cc5ea0

Browse files
committed
Use setup-uv GitHub Action
1 parent f500f4f commit 1cc5ea0

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,17 @@ jobs:
2828
- name: Install uv
2929
uses: astral-sh/setup-uv@v3
3030

31-
- name: Install Python
32-
run: uv python install ${{ matrix.python-version }}
33-
3431
- name: "Lint"
3532
run: |
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
33+
uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage commit --verbose
34+
uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage push --verbose
35+
uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage manual --verbose
3936
4037
- name: "Run tests"
4138
run: |
4239
# We run tests against "." and not the tests directory as we test the README
4340
# and documentation.
44-
uv run --all-extras pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests/ . --cov-report=xml
41+
uv run --all-extras --python=${{ matrix.python-version }} pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests/ . --cov-report=xml
4542
4643
- name: "Upload coverage to Codecov"
4744
uses: "codecov/codecov-action@v4"

.github/workflows/release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ jobs:
3434
- name: Install uv
3535
uses: astral-sh/setup-uv@v3
3636

37-
- name: Install Python
38-
run: uv python install ${{ matrix.python-version }}
39-
4037
- name: "Calver calculate version"
4138
uses: StephaneBour/actions-calver@master
4239
id: calver

0 commit comments

Comments
 (0)