Skip to content

Commit d8e61db

Browse files
committed
Another attempts to make legase python env work
1 parent 30f12d0 commit d8e61db

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

.github/workflows/python-tests.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,38 @@ on:
77
branches: [master, main]
88

99
jobs:
10-
deprecated-tests-py27:
11-
name: Tests on Python 2.7.18
10+
tests-legacy:
11+
name: Tests on Python ${{ matrix.python-version }}
1212
runs-on: ubuntu-latest
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version: ["2.7", "3.5", "3.6", "3.7"]
18+
1319
container:
14-
image: python:2.7.18-buster
20+
image: python:${{ matrix.python-version }}-slim-buster
21+
1522
steps:
1623
- uses: actions/checkout@v4
1724
- name: Install dependencies
1825
run: |
19-
python -m pip install --upgrade pip setuptools wheel "poetry==1.1.15"
26+
pip install --upgrade pip
27+
pip install "poetry==1.4.2"
2028
poetry install
2129
- name: Do lint
22-
run: |
23-
poetry run flake8 .
30+
run: poetry run flake8 .
2431
- name: Do tests
25-
run: |
26-
poetry run pytest --cov uchecker -v
32+
run: poetry run pytest --cov uchecker -v
2733

28-
tests:
34+
tests-modern:
2935
name: Tests on Python ${{ matrix.python-version }}
30-
runs-on: ubuntu-22.04
36+
runs-on: ubuntu-latest
3137

3238
strategy:
3339
fail-fast: false
3440
matrix:
35-
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
41+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
3642

3743
steps:
3844
- uses: actions/checkout@v4
@@ -42,11 +48,9 @@ jobs:
4248
python-version: ${{ matrix.python-version }}
4349
- name: Install dependencies
4450
run: |
45-
python -m pip install --upgrade pip setuptools wheel poetry
51+
pip install --upgrade pip poetry
4652
poetry install
4753
- name: Do lint
48-
run: |
49-
poetry run flake8 .
54+
run: poetry run flake8 .
5055
- name: Do tests
51-
run: |
52-
poetry run pytest --cov uchecker -v
56+
run: poetry run pytest --cov uchecker -v

0 commit comments

Comments
 (0)