From 4ed1d3f1f23ec55b6579af5b44a105aae63891cd Mon Sep 17 00:00:00 2001 From: Rory Barnes Date: Fri, 6 Sep 2024 09:51:51 -0700 Subject: [PATCH] Added Python 3.12 to tests. Changed upload_pypi in pip-install to work on all OSes --- .github/workflows/pip-install.yml | 15 ++++++++++++++- .github/workflows/tests-linux.yml | 2 +- .github/workflows/tests-macos-intel.yml | 2 +- .github/workflows/tests-macos-silicon.yml | 2 +- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pip-install.yml b/.github/workflows/pip-install.yml index 97888d362..173b8a31f 100644 --- a/.github/workflows/pip-install.yml +++ b/.github/workflows/pip-install.yml @@ -92,7 +92,20 @@ jobs: upload_pypi: needs: [build_wheels, build_sdist] - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, ubuntu-22.04, macos-12, macos-13, macos-14] + python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] + exclude: + - os: ubuntu-22.04 + python-version: '3.6' + - os: macos-14 + python-version: '3.6' + - os: macos-14 + python-version: '3.7' + fail-fast: false + steps: - uses: actions/download-artifact@v4 with: diff --git a/.github/workflows/tests-linux.yml b/.github/workflows/tests-linux.yml index e0b1ce3aa..559d47615 100644 --- a/.github/workflows/tests-linux.yml +++ b/.github/workflows/tests-linux.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: os: [ubuntu-20.04, ubuntu-22.04] - python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] exclude: - os: ubuntu-22.04 python-version: '3.6' diff --git a/.github/workflows/tests-macos-intel.yml b/.github/workflows/tests-macos-intel.yml index 7aba41dcc..cbf2313db 100644 --- a/.github/workflows/tests-macos-intel.yml +++ b/.github/workflows/tests-macos-intel.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: os: [macos-12, macos-13] - python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] fail-fast: false steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/tests-macos-silicon.yml b/.github/workflows/tests-macos-silicon.yml index eb9dfc32e..3b973c6df 100644 --- a/.github/workflows/tests-macos-silicon.yml +++ b/.github/workflows/tests-macos-silicon.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: os: [macos-14] - python-version: ['3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] fail-fast: false steps: - uses: actions/checkout@v4