Skip to content

Commit 858a0c5

Browse files
authored
Run CI tests with more Python versions (pals-project#19)
I think we would need at least this if we state that we support these versions in pals-project#18. Useful documentation at https://docs.github.com/en/actions/tutorials/build-and-test-code/python.
1 parent cde2808 commit 858a0c5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/unit_tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ jobs:
1414
unit_tests:
1515
name: unit tests
1616
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1720
steps:
1821
- uses: actions/checkout@v4
1922
- name: Set up Python
2023
uses: actions/setup-python@v5
2124
with:
22-
python-version: "3.13"
25+
python-version: ${{ matrix.python-version }}
2326
- name: Install dependencies
2427
run: |
2528
python -m pip install --upgrade pip
@@ -30,12 +33,15 @@ jobs:
3033
examples:
3134
name: examples
3235
runs-on: ubuntu-latest
36+
strategy:
37+
matrix:
38+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3339
steps:
3440
- uses: actions/checkout@v4
3541
- name: Set up Python
3642
uses: actions/setup-python@v5
3743
with:
38-
python-version: "3.13"
44+
python-version: ${{ matrix.python-version }}
3945
- name: Install dependencies
4046
run: |
4147
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)