File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,8 +22,14 @@ permissions:
2222
2323jobs :
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 :
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
Original file line number Diff line number Diff line change 1+ GHA: Test for different Python versions (3.12 and 3.13)
You can’t perform that action at this time.
0 commit comments