Skip to content

Commit 0829193

Browse files
author
Matthias Koeppe
committed
.github/workflows/ci-conda.yml: On pull_request, only run 1 macOS job
1 parent 4430e4c commit 0829193

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci-conda.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,18 @@ jobs:
2424
fail-fast: ${{ github.event_name == 'pull_request' }}
2525
max-parallel: ${{ github.event_name == 'pull_request' && 2 || 6 }}
2626
matrix:
27-
os: [ubuntu-latest, macos-latest]
27+
os: >-
28+
${{ github.event_name == 'pull_request'
29+
&& fromJson('["ubuntu-latest"]')
30+
|| fromJson('["ubuntu-latest", "macos-latest"]') }}
2831
python: ['3.9', '3.10', '3.11']
2932
# Optional environment is disabled for now as its not yet working
3033
# environment: [environment, environment-optional]
3134
conda-env: [environment]
35+
include: >-
36+
${{ github.event_name == 'pull_request'
37+
&& fromJson('[{"os": "macos-latest", "python": "3.11", "conda-env": "environment"}]')
38+
|| fromJson('[]') }}
3239
3340
steps:
3441
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)