diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2dd26f7..7d2a4e9c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,6 @@ on: workflow_dispatch: env: - JAX_PLATFORM_NAME: cpu QT_QPA_PLATFORM: offscreen DISPLAY: :99 @@ -52,7 +51,7 @@ jobs: - name: Run Pytest if: matrix.os != 'ubuntu-latest' || matrix.pyversion != '3.12' run: | - pdm run pytest -Werror -n auto + pdm run pytest -n auto - name: Run pytest and coverage if: matrix.os == 'ubuntu-latest' && matrix.pyversion == '3.12' diff --git a/pyproject.toml b/pyproject.toml index 4222084d..ce69f968 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -110,6 +110,14 @@ addopts = [ '--benchmark-skip', ] doctest_optionflags = ["NORMALIZE_WHITESPACE"] +env = [ + "JAX_DEBUG_NANS=True", + "JAX_PLATFORM_NAME=cpu" +] +filterwarnings = [ + "error", + 'ignore:datetime\.datetime\.utcfromtimestamp is deprecated:DeprecationWarning', # Python 3.12 +] [tool.ruff] extend-ignore = [