Skip to content

Commit

Permalink
Add matrix to test across OS and python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Sep 16, 2024
1 parent 36ad4eb commit e5ec0b1
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ jobs:

unit_tests:
name: Run unit tests
runs-on: ubuntu-24.04
strategy:
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:

- name: Checkout repo
Expand All @@ -40,7 +44,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.12
python-version: ${{ matrix.python_version }}
cache: 'pip'

- name: Install dependencies
Expand All @@ -51,7 +55,11 @@ jobs:

package_check:
name: Package check
runs-on: ubuntu-24.04
strategy:
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:

- name: Checkout repo
Expand All @@ -60,7 +68,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.12
python-version: ${{ matrix.python_version }}
cache: 'pip'

- name: Build tools
Expand Down

0 comments on commit e5ec0b1

Please sign in to comment.