Skip to content

Commit 9f12b4e

Browse files
committed
Actions: Revert to use 'develop' jobs os matrix
1 parent e4b90e1 commit 9f12b4e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020
COVERALLS_FAIL_ON_ERROR: true
2121

2222
jobs:
23-
# This sets the the operating systems in one place, which is used the following jobs/tests
23+
# Set the operating system matrix for the following jobs/tests
2424
# conda-user-build
2525
# conda-forge-build
2626
# pip-build
@@ -31,7 +31,12 @@ jobs:
3131
matrix_os: ${{ steps.set-matrix.outputs.matrix_os }}
3232
steps:
3333
- id: set-matrix
34-
run: echo "matrix_os=[\"windows-latest\", \"ubuntu-latest\", \"macos-latest\"]" >> $GITHUB_OUTPUT
34+
run: |
35+
if [[ "${{ github.event_name }}" == "pull_request" && "${{ github.base_ref }}" == "develop" ]]; then
36+
echo "matrix_os=[ \"ubuntu-latest\"]" >> $GITHUB_OUTPUT
37+
else
38+
echo "matrix_os=[\"windows-latest\", \"ubuntu-latest\", \"macos-latest\"]" >> $GITHUB_OUTPUT
39+
fi
3540
3641
3742
# Hindcast tests only run on pull requests. On push events,

0 commit comments

Comments
 (0)