Skip to content

Commit

Permalink
.github/workflows/ci-conda.yml: On pull_request, only run 1 Linux job
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Feb 14, 2024
1 parent 7a945cb commit a49a7c1
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,25 @@ jobs:

strategy:
matrix:
# On pushes to tags or branches, test the whole matrix.
os: >-
${{ github.event_name == 'pull_request'
&& fromJson('["ubuntu"]')
|| fromJson('["ubuntu, "macos]') }}
python: ['3.9', '3.10', '3.11']
|| fromJson('["ubuntu", "macos"]') }}
python: >-
${{ github.event_name == 'pull_request'
&& fromJson('["3.9"]')
|| fromJson('["3.9", "3.10", "3.11"]') }}
# Optional environment is disabled for now as its not yet working
# environment: [environment, environment-optional]
conda-env: [environment]
# On pull requests, only test two jobs:
# Ubuntu with Python 3.9, macOS with Python 3.10.
# Build & Test currently uses Python 3.11 (on ubuntu-focal).
# Together, they cover the supported minor Python versions.
include: >-
${{ github.event_name == 'pull_request'
&& fromJson('[{"os": "macos, "python": "3.11", "conda-env": "environment"}]')
&& fromJson('[{"os": "macos", "python": "3.10", "conda-env": "environment"}]')
|| fromJson('[]') }}
steps:
Expand Down

0 comments on commit a49a7c1

Please sign in to comment.