diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index f2e4f0f..1ae0fcd 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -20,8 +20,16 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest tox + pip install tox pip install -e . - name: Test with tox run: | - tox -p \ No newline at end of file + PYTHON_VERSION=$(python --version | cut -d' ' -f2) + + if [[ "$PYTHON_VERSION" == "3.9"* ]]; then + echo "Detected Python version: $PYTHON_VERSION" + echo "Skipping tests with xarray versions that require newer python" + tox -p --skip-env xarray202501 + else + tox -p + fi \ No newline at end of file