diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1a08b4c5903..028e21a342a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -126,6 +126,10 @@ jobs: run: | python -m pip install pytest-github-actions-annotate-failures + - name: Install beartype + run: | + python -m pip install pytest-beartype + - name: Install xarray run: | python -m pip install --no-deps -e . @@ -152,6 +156,7 @@ jobs: --cov=xarray --cov-report=xml --junitxml=pytest.xml + --beartype-packages=xarray - name: Upload test results if: always() diff --git a/pyproject.toml b/pyproject.toml index a7d5c1f220d..f2f4724e61c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,6 +41,7 @@ dev = [ "mypy", "pre-commit", "pytest", + "pytest-beartype", "pytest-cov", "pytest-env", "pytest-xdist",