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 Nov 14, 2023
1 parent 0829193 commit a011089
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,25 @@ jobs:
fail-fast: ${{ github.event_name == 'pull_request' }}
max-parallel: ${{ github.event_name == 'pull_request' && 2 || 6 }}
matrix:
# On pushes to tags or branches, test the whole matrix.
os: >-
${{ github.event_name == 'pull_request'
&& fromJson('["ubuntu-latest"]')
|| fromJson('["ubuntu-latest", "macos-latest"]') }}
python: ['3.9', '3.10', '3.11']
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-latest", "python": "3.11", "conda-env": "environment"}]')
&& fromJson('[{"os": "macos-latest", "python": "3.10", "conda-env": "environment"}]')
|| fromJson('[]') }}
steps:
Expand Down

0 comments on commit a011089

Please sign in to comment.