Skip to content

Commit dabebff

Browse files
committed
Add matrix to test across OS and python versions
1 parent 36ad4eb commit dabebff

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/continuous_integration.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ jobs:
3131

3232
unit_tests:
3333
name: Run unit tests
34-
runs-on: ubuntu-24.04
34+
strategy:
35+
matrix:
36+
python_version: [3.8, 3.9, 3.10, 3.11, 3.12, 3.13]
37+
os: [ubuntu-latest, windows-latest]
38+
runs-on: ${{ matrix.os }}
3539
steps:
3640

3741
- name: Checkout repo
@@ -40,7 +44,7 @@ jobs:
4044
- name: Setup Python
4145
uses: actions/setup-python@v5
4246
with:
43-
python-version: 3.12
47+
python-version: ${{ matrix.python_version }}
4448
cache: 'pip'
4549

4650
- name: Install dependencies
@@ -51,7 +55,11 @@ jobs:
5155

5256
package_check:
5357
name: Package check
54-
runs-on: ubuntu-24.04
58+
strategy:
59+
matrix:
60+
python_version: [3.8, 3.9, 3.10, 3.11, 3.12, 3.13]
61+
os: [ubuntu-latest, windows-latest]
62+
runs-on: ${{ matrix.os }}
5563
steps:
5664

5765
- name: Checkout repo
@@ -60,7 +68,7 @@ jobs:
6068
- name: Setup Python
6169
uses: actions/setup-python@v5
6270
with:
63-
python-version: 3.12
71+
python-version: ${{ matrix.python_version }}
6472
cache: 'pip'
6573

6674
- name: Build tools

0 commit comments

Comments
 (0)