From 2e43f8a4e79c93281ccaee61e5e00d1fd6351227 Mon Sep 17 00:00:00 2001 From: Timothy Nunn Date: Wed, 17 Sep 2025 08:51:36 +0000 Subject: [PATCH] Matrix run unit tests on CI for all combinations of supported Python versions and OS --- .github/workflows/process.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/process.yml b/.github/workflows/process.yml index 8072628daf..7b29de8396 100644 --- a/.github/workflows/process.yml +++ b/.github/workflows/process.yml @@ -12,12 +12,16 @@ permissions: jobs: unit-test: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + python-version: ['3.10', '3.11', '3.12', '3.13'] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: ${{ matrix.python-version }} - name: Install PROCESS # Editable install to match default install run: | @@ -28,6 +32,7 @@ jobs: pytest --cov=process tests/unit -v \ --cov-report xml - name: Upload coverage to Codecov + if: ${{ matrix.python-version }} == '3.10' uses: codecov/codecov-action@v5 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}