Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve TypeError for py39 #184

Closed
wants to merge 14 commits into from
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,31 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build

pytest_plain:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[all]
python -m pip install pytest
python -m pip install dask pymetis
- name: list env contents
run: |
conda info
conda list
pip list
- name: Test with pytest
run: |
pytest
3 changes: 3 additions & 0 deletions xugrid/ugrid/interpolate.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# to prevent "TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'" in py39
from __future__ import annotations

import warnings

import numpy as np
Expand Down
Loading