From 00bfc4ba53e50b940bde570be665e00c5951cedc Mon Sep 17 00:00:00 2001 From: Lukas Puehringer Date: Wed, 24 Apr 2024 16:45:03 +0200 Subject: [PATCH] ci: test macOS and Windows on latest Python only CI started failing recently, because new macos-latest runs on arm, which does not include all older Python versions. As workaround and for the sake of a slimmer test matrix, we drop all but latest Python tests on macOS and Windows. The remaining matrix should still give us reasonable coverage. Related discussion in: https://github.com/secure-systems-lab/securesystemslib/pull/792#issuecomment-2072359562 Signed-off-by: Lukas Puehringer --- .github/workflows/_test.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml index b6e98aae..8605aaa5 100644 --- a/.github/workflows/_test.yml +++ b/.github/workflows/_test.yml @@ -8,13 +8,19 @@ jobs: test: strategy: fail-fast: false - # Run tests on each OS/Python combination matrix: + # Run tests once on each supported Python python-version: ["3.8", "3.9", "3.10", "3.11"] - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest] toxenv: [py] - include: + # Run macOS, Windows and "special" tests on latest Python version only + - python-version: "3.11" + os: macos-latest + toxenv: py + - python-version: "3.11" + os: windows-latest + toxenv: py - python-version: "3.11" os: ubuntu-latest toxenv: purepy311