Skip to content

Commit

Permalink
CI: Fix test dependency installs
Browse files Browse the repository at this point in the history
This avoids installing CartoPy build dependencies unless we actually
need CartoPy.
  • Loading branch information
dopplershift committed Jul 23, 2021
1 parent e15649d commit 8728e9c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/tests-pypi.yml
Expand Up @@ -84,13 +84,15 @@ jobs:
# This installs the stuff needed to build and install Shapely and CartoPy from source.
# Need to install numpy first to make CartoPy happy.
- name: Install dependencies
- name: Install CartoPy build dependencies
if: ${{ matrix.no-extras != 'No Extras' }}
run: |
sudo apt-get install libgeos-dev libproj-dev proj-bin
python -m pip install --upgrade pip setuptools
python -m pip install --no-binary :all: shapely
python -m pip install -c ci/${{ matrix.dep-versions }} numpy
python -m pip install -r ci/test_requirements.txt -c ci/${{ matrix.dep-versions }}
- name: Install test dependencies
run: python -m pip install -r ci/test_requirements.txt -c ci/${{ matrix.dep-versions }}

# This imports CartoPy to find its map data cache directory
- name: Get CartoPy maps dir
Expand Down

0 comments on commit 8728e9c

Please sign in to comment.