Skip to content

Commit 418f7d4

Browse files
committed
Update python-app.yml to use shortened Python version identifiers and adjust linting conditions
1 parent 7db97c8 commit 418f7d4

1 file changed

Lines changed: 19 additions & 9 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,23 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
23-
os: [ubuntu-latest]
2422
include:
25-
# Test on additional platforms for latest Python
26-
- python-version: "3.11"
23+
- python-version: "py38"
24+
os: ubuntu-latest
25+
- python-version: "py39"
26+
os: ubuntu-latest
27+
- python-version: "py310"
28+
os: ubuntu-latest
29+
- python-version: "py311"
30+
os: ubuntu-latest
31+
- python-version: "py312"
32+
os: ubuntu-latest
33+
- python-version: "py313"
34+
os: ubuntu-latest
35+
# Test on additional platforms for Python 3.11
36+
- python-version: "py311"
2737
os: macos-latest
28-
- python-version: "3.11"
38+
- python-version: "py311"
2939
os: windows-latest
3040

3141
steps:
@@ -38,16 +48,16 @@ jobs:
3848
cache: true
3949

4050
- name: Install dependencies and run tests
41-
run: pixi run test-py${{ matrix.python-version | replace('.', '') }}
51+
run: pixi run test-${{ matrix.python-version }}
4252

4353
- name: Run lint (Python 3.11 only)
44-
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
54+
if: matrix.python-version == 'py311' && matrix.os == 'ubuntu-latest'
4555
run: pixi run lint
4656

4757
- name: Generate coverage report (Python 3.11 only)
48-
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
58+
if: matrix.python-version == 'py311' && matrix.os == 'ubuntu-latest'
4959
run: pixi run -e py311 coverage && pixi run -e py311 coverage-combine && pixi run -e py311 coverage-xml
5060

5161
- name: Publish to codecov
52-
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
62+
if: matrix.python-version == 'py311' && matrix.os == 'ubuntu-latest'
5363
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)