Skip to content

Commit af695bf

Browse files
authored
CI: Activate python 3.10 & skip shapely install for osx Python 3.10 (#996)
1 parent a2f9455 commit af695bf

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/tests.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
fail-fast: true
3333
matrix:
3434
os: [ubuntu-latest, macos-latest, windows-latest]
35-
python-version: [3.8, 3.9] # '3.10'
35+
python-version: [3.8, 3.9, '3.10']
3636
python-implementation: [python]
3737
proj-version: ['*']
3838
env:
@@ -64,7 +64,13 @@ jobs:
6464
run: |
6565
conda config --prepend channels conda-forge
6666
conda config --set channel_priority strict
67-
conda create -n test ${{ matrix.python-implementation }}=${{ matrix.python-version }} cython proj=${{ matrix.proj-version }} numpy shapely xarray pandas
67+
export INSTALL_DEPS='${{ matrix.python-implementation }}=${{ matrix.python-version }} cython proj=${{ matrix.proj-version }} numpy xarray pandas'
68+
if [ "${{ matrix.os }}" = "macos-latest" -a "${{ matrix.python-version }}" = "3.10" ]; then
69+
sed -i.bak '/shapely/d' requirements-test.txt;
70+
else
71+
export INSTALL_DEPS="${INSTALL_DEPS} shapely";
72+
fi;
73+
conda create -n test $INSTALL_DEPS
6874
source activate test
6975
python -m pip install -e . --no-use-pep517 || python -m pip install -e .
7076
python -m pip install -r requirements-test.txt

0 commit comments

Comments
 (0)