Skip to content

Commit a49a7c1

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

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/ci-conda.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,25 @@ jobs:
2222

2323
strategy:
2424
matrix:
25+
# On pushes to tags or branches, test the whole matrix.
2526
os: >-
2627
${{ github.event_name == 'pull_request'
2728
&& fromJson('["ubuntu"]')
28-
|| fromJson('["ubuntu, "macos]') }}
29-
python: ['3.9', '3.10', '3.11']
29+
|| fromJson('["ubuntu", "macos"]') }}
30+
python: >-
31+
${{ github.event_name == 'pull_request'
32+
&& fromJson('["3.9"]')
33+
|| fromJson('["3.9", "3.10", "3.11"]') }}
3034
# Optional environment is disabled for now as its not yet working
3135
# environment: [environment, environment-optional]
3236
conda-env: [environment]
37+
# On pull requests, only test two jobs:
38+
# Ubuntu with Python 3.9, macOS with Python 3.10.
39+
# Build & Test currently uses Python 3.11 (on ubuntu-focal).
40+
# Together, they cover the supported minor Python versions.
3341
include: >-
3442
${{ github.event_name == 'pull_request'
35-
&& fromJson('[{"os": "macos, "python": "3.11", "conda-env": "environment"}]')
43+
&& fromJson('[{"os": "macos", "python": "3.10", "conda-env": "environment"}]')
3644
|| fromJson('[]') }}
3745
3846
steps:

0 commit comments

Comments
 (0)