From e3716701a0c4e6df93fd62946a84cf99e0bc2c91 Mon Sep 17 00:00:00 2001 From: snowman2 Date: Thu, 31 Aug 2023 12:09:19 -0500 Subject: [PATCH] CI: Make xarray & pandas optional for pypy --- .github/workflows/tests.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 35637df1b..67a44b214 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -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 .