Skip to content

Commit a0ad7a7

Browse files
committed
Attempt to switch to uv
1 parent 39d15cb commit a0ad7a7

File tree

3 files changed

+20
-1049
lines changed

3 files changed

+20
-1049
lines changed

.github/workflows/python-tests.yml

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,50 +7,31 @@ on:
77
branches: [master, main]
88

99
jobs:
10-
tests-legacy:
10+
tests:
1111
name: Tests on Python ${{ matrix.python-version }}
1212
runs-on: ubuntu-latest
1313

1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: ["2.7", "3.5", "3.6", "3.7"]
18-
19-
container:
20-
image: python:${{ matrix.python-version }}-slim-buster
17+
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
2118

2219
steps:
2320
- uses: actions/checkout@v4
24-
- name: Install dependencies
25-
run: |
26-
pip install --upgrade pip
27-
pip install "poetry==1.1.15"
28-
poetry install
29-
- name: Do lint
30-
run: poetry run flake8 .
31-
- name: Do tests
32-
run: poetry run pytest --cov uchecker -v
3321

34-
tests-modern:
35-
name: Tests on Python ${{ matrix.python-version }}
36-
runs-on: ubuntu-latest
37-
38-
strategy:
39-
fail-fast: false
40-
matrix:
41-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
42-
43-
steps:
44-
- uses: actions/checkout@v4
4522
- name: Set up Python ${{ matrix.python-version }}
4623
uses: actions/setup-python@v5
4724
with:
4825
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install uv
28+
run: pip install uv
29+
4930
- name: Install dependencies
50-
run: |
51-
pip install --upgrade pip poetry
52-
poetry install
31+
run: uv pip install '.[dev]'
32+
5333
- name: Do lint
54-
run: poetry run flake8 .
34+
run: uv run flake8 .
35+
5536
- name: Do tests
56-
run: poetry run pytest --cov uchecker -v
37+
run: uv run pytest --cov uchecker -v

0 commit comments

Comments
 (0)