Skip to content

Commit 7c182ae

Browse files
authored
GHA: Use different Python versions for test (#94)
1 parent 2013c3f commit 7c182ae

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@ permissions:
2222

2323
jobs:
2424
test-ubuntu:
25-
name: ubuntu-python
25+
name: ubuntu-python-${{ matrix.python-version }}
2626
runs-on: ubuntu-latest
27+
strategy:
28+
matrix:
29+
python-version: &python-matrix
30+
- '3.12'
31+
- '3.13'
32+
# - '3.14'
2733
container:
2834
image: registry.opensuse.org/documentation/containers/15.6/opensuse-daps-toolchain:latest
2935
steps:
@@ -53,7 +59,7 @@ jobs:
5359
- name: Setup Python
5460
uses: actions/setup-python@v5
5561
with:
56-
python-version: '3.12'
62+
python-version: ${{ matrix.python-version }}
5763

5864
- name: Install uv
5965
id: setup-uv
@@ -76,18 +82,21 @@ jobs:
7682
pytest -vv
7783
7884
test-macos:
79-
name: macos-latest
85+
name: macos-python-${{ matrix.python-version }}
8086
runs-on: macos-latest
87+
strategy:
88+
matrix:
89+
python-version: *python-matrix
8190

8291
steps:
8392
- name: Checkout repository
8493
uses: actions/checkout@v4
8594

86-
# Set up Python 3.12 on macOS environment
95+
# Set up Python on macOS environment
8796
- name: Setup Python
8897
uses: actions/setup-python@v5
8998
with:
90-
python-version: '3.12'
99+
python-version: ${{ matrix.python-version }}
91100

92101
# Install uv and project dependencies inside a virtual environment
93102
- name: Install uv and dependencies

changelog.d/94.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GHA: Test for different Python versions (3.12 and 3.13)

0 commit comments

Comments
 (0)