Skip to content

Commit 0d07a99

Browse files
committed
Add cross-platform CI test matrix
Signed-off-by: cyphercodes <cyphercodes@users.noreply.github.com>
1 parent 789ace5 commit 0d07a99

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

.github/workflows/build.yaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,38 @@ jobs:
3939
4040
build:
4141
needs: lint
42-
runs-on: ubuntu-latest
42+
runs-on: ${{ matrix.os }}
4343
strategy:
4444
fail-fast: false
4545
matrix:
46-
python_ver: ["3.10", "3.11", "3.12", "3.13", "3.14"]
46+
os: [ubuntu-latest, windows-latest, macos-latest]
47+
python:
48+
- version: "3.10"
49+
tox_env: py310
50+
- version: "3.11"
51+
tox_env: py311
52+
- version: "3.12"
53+
tox_env: py312
54+
- version: "3.13"
55+
tox_env: py313
56+
- version: "3.14"
57+
tox_env: py314
4758
steps:
4859
- uses: actions/checkout@v6
49-
- name: Set up Python ${{ matrix.python_ver }}
60+
- name: Set up Python ${{ matrix.python.version }}
5061
uses: actions/setup-python@v6
5162
with:
52-
python-version: ${{ matrix.python_ver }}
63+
python-version: ${{ matrix.python.version }}
5364
- name: Install dependencies
5465
run: |
5566
python -m pip install --upgrade pip
5667
pip install setuptools wheel tox
5768
- name: Check Typing
69+
if: matrix.os == 'ubuntu-latest'
5870
run: |
5971
tox -e type
6072
- name: Run unit-tests
6173
run: |
62-
tox -e py`echo "${{ matrix.python_ver }}" | sed 's/\.//g'`
74+
tox -e ${{ matrix.python.tox_env }}
6375
- name: Upload test coverage
6476
uses: codecov/codecov-action@v6

0 commit comments

Comments
 (0)