From 8a7dd0111999eac792a775a3292f63a7167ccfcf Mon Sep 17 00:00:00 2001 From: Fiiranek Date: Mon, 26 Aug 2024 15:27:25 +0200 Subject: [PATCH] Use different python versions in `python-version` matrix on pull request event --- .github/workflows/checks.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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