Skip to content

Commit

Permalink
Adjust GHA build to run MacOS and Windows tests only on latest Python
Browse files Browse the repository at this point in the history
  • Loading branch information
pronovic committed Nov 9, 2022
1 parent 324ef66 commit c6df29b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# vim: set ft=yaml ts=2 sw=2 expandtab:
# On GHA, the Linux runners are *much* faster and more reliable, so we only run the full matrix build there
name: Test Suite
on:
push:
Expand All @@ -13,10 +14,27 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
linux-build-and-test:
uses: pronovic/gha-shared-workflows/.github/workflows/poetry-build-and-test.yml@v2
secrets: inherit
with:
matrix-os-version: "[ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]"
matrix-python-version: "[ '3.9', '3.10' ]"
poetry-version: "1.2.0"
matrix-os-version: "[ 'ubuntu-latest' ]"
matrix-python-version: "[ '3.9', '3.10', '3.11' ]" # run Linux tests on all supported Python versions
poetry-version: "1.2.2"
enable-coveralls: true # only report to coveralls.io for tests that run on Linux
macos-build-and-test:
uses: pronovic/gha-shared-workflows/.github/workflows/poetry-build-and-test.yml@v2
secrets: inherit
with:
matrix-os-version: "[ 'macos-latest' ]"
matrix-python-version: "[ '3.11' ]" # only run MacOS tests on latest Python
poetry-version: "1.2.2"
enable-coveralls: false
windows-build-and-test:
uses: pronovic/gha-shared-workflows/.github/workflows/poetry-build-and-test.yml@v2
secrets: inherit
with:
matrix-os-version: "[ 'windows-latest' ]"
matrix-python-version: "[ '3.11' ]" # only run Windows tests on latest Python
poetry-version: "1.2.2"
enable-coveralls: false
4 changes: 4 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 0.5.3 unreleased

* Adjust GHA build to run MacOS and Windows tests only on latest Python.

Version 0.5.2 24 Oct 2022

* Refactor the run script and pre-commit hooks to reduce duplication.
Expand Down

0 comments on commit c6df29b

Please sign in to comment.