Skip to content

Commit

Permalink
CI: Separate out Cartopy from extras in PyPI setup
Browse files Browse the repository at this point in the history
This allows Siphon to reuse the action.
  • Loading branch information
dopplershift committed Oct 31, 2024
1 parent 329b547 commit bb4aaac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/actions/install-pypi/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
description: 'Whether to enable old builds for shapely and cartopy'
required: false
default: 'false'
need-cartopy:
description: 'Whether Cartopy support is needed'
required: false
default: 'false'

runs:
using: composite
Expand Down Expand Up @@ -74,7 +78,7 @@ runs:
-c ci/${{ inputs.version-file }} -c ci/${{ inputs.type }}_requirements.txt -c ci/extra_requirements.txt
- name: Download Cartopy Maps
if: ${{ inputs.need-extras == 'true' }}
if: ${{ inputs.need-cartopy == 'true' }}
shell: bash
run: ci/download_cartopy_maps.py

1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
type: 'doc'
python-version: ${{ matrix.python-version }}
need-extras: true
need-cartopy: true

- name: Build docs
id: build-docs
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
type: 'test'
python-version: ${{ matrix.python-version }}
old-build: ${{ matrix.no-extras != 'No Extras' && matrix.dep-versions == 'Minimum' }}
need-cartopy: ${{ matrix.no-extras != 'No Extras' }}

- name: Run tests
uses: ./.github/actions/run-tests
Expand Down

0 comments on commit bb4aaac

Please sign in to comment.