Skip to content

Commit a011089

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

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci-conda.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,25 @@ jobs:
2424
fail-fast: ${{ github.event_name == 'pull_request' }}
2525
max-parallel: ${{ github.event_name == 'pull_request' && 2 || 6 }}
2626
matrix:
27+
# On pushes to tags or branches, test the whole matrix.
2728
os: >-
2829
${{ github.event_name == 'pull_request'
2930
&& fromJson('["ubuntu-latest"]')
3031
|| fromJson('["ubuntu-latest", "macos-latest"]') }}
31-
python: ['3.9', '3.10', '3.11']
32+
python: >-
33+
${{ github.event_name == 'pull_request'
34+
&& fromJson('["3.9"]')
35+
|| fromJson('["3.9", "3.10", "3.11"]') }}
3236
# Optional environment is disabled for now as its not yet working
3337
# environment: [environment, environment-optional]
3438
conda-env: [environment]
39+
# On pull requests, only test two jobs:
40+
# Ubuntu with Python 3.9, macOS with Python 3.10.
41+
# Build & Test currently uses Python 3.11 (on ubuntu-focal).
42+
# Together, they cover the supported minor Python versions.
3543
include: >-
3644
${{ github.event_name == 'pull_request'
37-
&& fromJson('[{"os": "macos-latest", "python": "3.11", "conda-env": "environment"}]')
45+
&& fromJson('[{"os": "macos-latest", "python": "3.10", "conda-env": "environment"}]')
3846
|| fromJson('[]') }}
3947
4048
steps:

0 commit comments

Comments
 (0)