Skip to content

Commit

Permalink
better env test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Jan 3, 2024
1 parent b2fa6d9 commit 6bda014
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
workflow_dispatch:

env:
JAX_PLATFORM_NAME: cpu
QT_QPA_PLATFORM: offscreen
DISPLAY: :99

Expand Down Expand Up @@ -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'
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 6bda014

Please sign in to comment.