|
7 | 7 | branches: [master, main] |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - deprecated-tests-py27: |
11 | | - name: Tests on Python 2.7.18 |
| 10 | + tests-legacy: |
| 11 | + name: Tests on Python ${{ matrix.python-version }} |
12 | 12 | 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 | + |
13 | 19 | container: |
14 | | - image: python:2.7.18-buster |
| 20 | + image: python:${{ matrix.python-version }}-slim-buster |
| 21 | + |
15 | 22 | steps: |
16 | 23 | - uses: actions/checkout@v4 |
17 | 24 | - name: Install dependencies |
18 | 25 | 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" |
20 | 28 | poetry install |
21 | 29 | - name: Do lint |
22 | | - run: | |
23 | | - poetry run flake8 . |
| 30 | + run: poetry run flake8 . |
24 | 31 | - name: Do tests |
25 | | - run: | |
26 | | - poetry run pytest --cov uchecker -v |
| 32 | + run: poetry run pytest --cov uchecker -v |
27 | 33 |
|
28 | | - tests: |
| 34 | + tests-modern: |
29 | 35 | name: Tests on Python ${{ matrix.python-version }} |
30 | | - runs-on: ubuntu-22.04 |
| 36 | + runs-on: ubuntu-latest |
31 | 37 |
|
32 | 38 | strategy: |
33 | 39 | fail-fast: false |
34 | 40 | 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"] |
36 | 42 |
|
37 | 43 | steps: |
38 | 44 | - uses: actions/checkout@v4 |
|
42 | 48 | python-version: ${{ matrix.python-version }} |
43 | 49 | - name: Install dependencies |
44 | 50 | run: | |
45 | | - python -m pip install --upgrade pip setuptools wheel poetry |
| 51 | + pip install --upgrade pip poetry |
46 | 52 | poetry install |
47 | 53 | - name: Do lint |
48 | | - run: | |
49 | | - poetry run flake8 . |
| 54 | + run: poetry run flake8 . |
50 | 55 | - name: Do tests |
51 | | - run: | |
52 | | - poetry run pytest --cov uchecker -v |
| 56 | + run: poetry run pytest --cov uchecker -v |
0 commit comments