Skip to content

Commit

Permalink
Use different python versions in python-version matrix on pull requ…
Browse files Browse the repository at this point in the history
…est event
  • Loading branch information
franciszekjob committed Aug 26, 2024
1 parent d8fcdc6 commit 8a7dd01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8a7dd01

Please sign in to comment.