Skip to content

Commit bd810fa

Browse files
committed
replace setup-python + pip with setup-uv
1 parent 2a03e50 commit bd810fa

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,10 @@ jobs:
2525
uses: actions/checkout@v6
2626
with:
2727
persist-credentials: false
28-
- name: setup python
29-
uses: actions/setup-python@v6
28+
- name: setup environment
29+
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # 7.1.6
3030
with:
3131
python-version: "${{ matrix.python-version }}"
32-
- name: upgrade pip
33-
run: |
34-
python -m pip install --upgrade pip
35-
- name: install dependencies
36-
run: |
37-
python -m pip install -r requirements.txt
38-
python -m pip install .
39-
python -m pip install pytest
4032
- name: run tests
4133
run: |
42-
python -m pytest -rf
34+
uv run -m pytest -rf --cov=minimum_versions

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,9 @@ branch = true
8383
[tool.coverage.report]
8484
show_missing = true
8585
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING"]
86+
87+
[dependency-groups]
88+
dev = [
89+
"pytest>=9.0.2",
90+
"pytest-cov>=7.0.0",
91+
]

0 commit comments

Comments
 (0)