From 84f7f4e962ceb1d7afdb1cb7a9c7169be810aefc Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Fri, 27 Sep 2024 12:19:15 +0200 Subject: [PATCH 1/2] Test on Linux/macOS/Windows for all supported Python versions --- .github/workflows/tests.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0da4c4eb..c434b1f6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,13 +29,17 @@ jobs: run: ruff format --check test: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: ["3.9", "3.10", "3.11", "3.12"] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: ${{ matrix.python-version }} - name: Install dependencies run: python -m pip install -r requirements/required.txt -r requirements/test.txt - name: Test with pytest From 0659d622fccbb464883314bba21f72bdd998782d Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Fri, 27 Sep 2024 12:20:54 +0200 Subject: [PATCH 2/2] Latest version of numpy does not support oldest version of Python --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c434b1f6..e2767433 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,7 +32,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4