Skip to content

Commit 79de88a

Browse files
committed
ci(pytest): use uv to install coverage dependencies
1 parent 07d4a73 commit 79de88a

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/pylint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
paths:
66
- '**/*.py' # Watch for changes in any Python files
7-
- 'pyproject.yml' # Watch for changes in the pyproject.yml file
7+
- 'pyproject.toml' # Watch for changes in the pyproject.toml file
88
workflow_dispatch:
99
release:
1010
types: [published]

.github/workflows/pyright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Checkout
3434
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3535

36-
# https://docs.astral.sh/uv/guides/integration/github/
36+
# https://docs.astral.sh/uv/guides/integration/github/
3737
- name: Install uv and set the python version
3838
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
3939
with:

.github/workflows/pytest.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
pull_request:
77
paths:
88
- '**/*.py' # Watch for changes in any Python files
9-
- 'pyproject.yml' # Watch for changes in the pyproject.yml file
9+
- 'pyproject.toml' # Watch for changes in the pyproject.toml file
1010
push:
1111
branches:
1212
- master # Only run on push to master branch
1313
paths:
1414
- '**/*.py' # Watch for changes in any Python files
15-
- 'pyproject.yml' # Watch for changes in the pyproject.yml file
15+
- 'pyproject.toml' # Watch for changes in the pyproject.toml file
1616
workflow_dispatch:
1717
release:
1818
types: [published]
@@ -140,14 +140,16 @@ jobs:
140140
with:
141141
name: coverage-3.9
142142

143-
- name: Set up Python
144-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
143+
# https://docs.astral.sh/uv/guides/integration/github/
144+
- name: Install uv and set the python version
145+
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
145146
with:
146147
python-version: '3.9' # Match with the coverage report Python version
148+
activate-environment: true
147149

148150
- name: Install dependencies
149151
run: |
150-
python -m pip install 'pip==25.0.1' 'coverage==7.8.0'
152+
uv pip install .[dev]
151153
152154
- name: Check coverage
153155
run: |

0 commit comments

Comments
 (0)