From 4d27fc9510ff1059ac923b441985a8f1cb12cdb9 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Wed, 11 Dec 2024 08:30:09 +0100 Subject: [PATCH] ENH: GHA: Only compile Python 11 and above in pull requests --- .github/workflows/build-test-package-python-cuda.yml | 2 +- .github/workflows/build-test-package.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test-package-python-cuda.yml b/.github/workflows/build-test-package-python-cuda.yml index e890255c2..0623b39db 100644 --- a/.github/workflows/build-test-package-python-cuda.yml +++ b/.github/workflows/build-test-package-python-cuda.yml @@ -18,7 +18,7 @@ jobs: strategy: max-parallel: 2 matrix: - python3-minor-version: ["8","9","10","11"] + python3-minor-versions: ${{ github.event_name == 'pull_request' && '["11"]' || '["9","10","11"]' }} manylinux-platform: ["_2_28-x64","2014-x64"] cuda-version: ["116","121"] diff --git a/.github/workflows/build-test-package.yml b/.github/workflows/build-test-package.yml index fb7cc7ec0..d949aa92c 100644 --- a/.github/workflows/build-test-package.yml +++ b/.github/workflows/build-test-package.yml @@ -16,5 +16,6 @@ jobs: cmake-options: '-DRTK_BUILD_APPLICATIONS:BOOL=OFF' itk-python-package-org: 'SimonRit' itk-python-package-tag: '45cfd02a22661731ca5b155f210cfa2f887d50e7' + python3-minor-versions: ${{ github.event_name == 'pull_request' && '["11"]' || '["9","10","11"]' }} secrets: pypi_password: ${{ secrets.pypi_password }}