Skip to content

Commit

Permalink
.github/workflows/ci-conda.yml: On pull_request, only run 1 macOS job
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Nov 10, 2023
1 parent 429555a commit e635151
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,18 @@ jobs:
fail-fast: ${{ github.event_name == 'pull_request' }}
max-parallel: ${{ github.event_name == 'pull_request' && 2 || 6 }}
matrix:
os: [ubuntu-latest, macos-latest]
os: >-
${{ github.event_name == 'pull_request'
&& fromJson('["ubuntu-latest"]')
|| fromJson('["ubuntu-latest", "macos-latest"]') }}
python: ['3.9', '3.10', '3.11']
# Optional environment is disabled for now as its not yet working
# environment: [environment, environment-optional]
conda-env: [environment]
include: >-
${{ github.event_name == 'pull_request'
&& fromJson('[{"os": "macos-latest", "python": "3.11", "conda-env": "environment"}]')
|| fromJson('[]') }}
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit e635151

Please sign in to comment.