Skip to content

Commit

Permalink
CI: Make xarray & pandas optional for pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Aug 31, 2023
1 parent 2caeb99 commit e371670
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,18 @@ jobs:
run: |
conda config --prepend channels conda-forge
conda config --set channel_priority strict
export INSTALL_DEPS='${{ matrix.python-implementation }}=${{ matrix.python-version }} cython proj=${{ matrix.proj-version }} numpy xarray pandas'
export INSTALL_DEPS='${{ matrix.python-implementation }}=${{ matrix.python-version }} cython proj=${{ matrix.proj-version }} numpy'
if [ "${{ matrix.os }}" = "macos-latest" -a "${{ matrix.python-version }}" = "3.10" ]; then
sed -i.bak '/shapely/d' requirements-test.txt;
else
export INSTALL_DEPS="${INSTALL_DEPS} shapely";
fi;
if [ "${{ matrix.python-implementation }}" = "pypy" ]; then
sed -i.bak '/xarray/d' requirements-test.txt;
sed -i.bak '/pandas/d' requirements-test.txt;
else
export INSTALL_DEPS="${INSTALL_DEPS} xarray pandas";
fi;
conda create -n test $INSTALL_DEPS
source activate test
python -m pip install -e .
Expand Down

0 comments on commit e371670

Please sign in to comment.