Skip to content

Commit

Permalink
Skip new xarray with python==3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverwm1 committed Jan 20, 2025
1 parent bac5e46 commit ee28dbf
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit ee28dbf

Please sign in to comment.