Skip to content

Commit

Permalink
CI: Only build shapely from src on Minimum runs
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Oct 30, 2023
1 parent 70b16f4 commit 3dd466c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/actions/install-pypi/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ inputs:
python-version:
description: 'What version of Python to use'
required: true
old-build:
description: 'Whether to enable old builds for shapely and cartopy'
required: false
default: false

runs:
using: composite
Expand All @@ -30,13 +34,13 @@ runs:
ci/extra_requirements.txt
# This installs the stuff needed to build and install Shapely and CartoPy from source.
- name: Install CartoPy build dependencies
if: ${{ inputs.need-extras == 'true' }}
- name: Install CartoPy/Shapely build dependencies
if: ${{ inputs.old-build == 'true' }}
shell: bash
run: sudo apt-get install libgeos-dev

- name: Disable Shapely Wheels
if: ${{ inputs.need-extras == 'true' }}
if: ${{ inputs.old-build == 'true' }}
shell: bash
run: echo "PIP_NO_BINARY=shapely" >> $GITHUB_ENV

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 @@ -72,6 +72,7 @@ jobs:
need-extras: ${{ matrix.no-extras != 'No Extras' }}
type: 'test'
python-version: ${{ matrix.python-version }}
old-build: ${{ matrix.no-extras != 'No Extras' && matrix.dep-versions == 'Minimum' }}

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

0 comments on commit 3dd466c

Please sign in to comment.