Skip to content

Commit

Permalink
ci/ga/docs: Generate version matrix dimension based on GA event
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Vesely <[email protected]>
  • Loading branch information
jvesely committed Apr 27, 2024
1 parent 3621054 commit 3dfe792
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/pnl-ci-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
# Matrix setup is a hacky way to include 'base' build in pull requests
# The entire matrix is set up and 'base' builds are pruned based
# on event name and final configuration (ubuntu, python3.11).
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest, macos-latest, windows-latest]
event:
- ${{ github.event_name }}
pnl-version: ['head', 'base']
pnl-version: ${{ (github.event_name == 'push') && fromJSON('["head"]') || fromJSON('["head", "base"]') }}
exclude:
- event: 'push'
pnl-version: 'base'
- os: macos-latest
pnl-version: 'base'
- os: windows-latest
Expand All @@ -57,7 +50,6 @@ jobs:
- python-version: '3.7'
os: macos-13
pnl-version: 'head'
event: 'push'

outputs:
on_master: ${{ steps.on_master.outputs.on-branch }}
Expand Down

0 comments on commit 3dfe792

Please sign in to comment.