diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index d4cfaf1ea..ade9958cc 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -160,7 +160,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] + python-version: ${{ github.event_name == 'pull_request' && ["3.10", "3.12"] || ["3.8", "3.9", "3.10", "3.11", "3.12"] }} env: LEDGER_PROXY_ADDRESS: 127.0.0.1 LEDGER_PROXY_PORT: 9999 @@ -337,7 +337,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] + python-version: ${{ github.event_name == 'pull_request' && ["3.10", "3.12"] || ["3.8", "3.9", "3.10", "3.11", "3.12"] }} env: SEPOLIA_RPC_URL: ${{ secrets.SEPOLIA_RPC_URL }} steps: @@ -419,7 +419,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] + python-version: ${{ github.event_name == 'pull_request' && ["3.10", "3.12"] || ["3.8", "3.9", "3.10", "3.11", "3.12"] }} steps: - uses: actions/checkout@v4 @@ -483,7 +483,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] + python-version: ${{ github.event_name == 'pull_request' && ["3.10", "3.12"] || ["3.8", "3.9", "3.10", "3.11", "3.12"] }} steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@dc6353516c68da0f06325f42ad880f76a5e77ec9