Skip to content

Commit

Permalink
try to set PYTEST_ADDOPTS globally
Browse files Browse the repository at this point in the history
  • Loading branch information
fehiepsi committed Dec 4, 2024
1 parent cf8d76b commit a72e07b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
pull_request:
branches: [ master ]

env:
PYTEST_ADDOPTS: "--cov=numpyro"

jobs:
lint:

Expand Down Expand Up @@ -69,7 +72,6 @@ jobs:
pip install https://github.com/pyro-ppl/funsor/archive/master.zip
pip install .[dev,test]
pip freeze
export PYTEST_ADDOPTS="--cov"
- name: Test with pytest
run: |
CI=1 pytest -vs -k "not test_example" --durations=100 --ignore=test/infer/ --ignore=test/contrib/
Expand Down Expand Up @@ -107,7 +109,6 @@ jobs:
pip install https://github.com/pyro-ppl/funsor/archive/master.zip
pip install .[dev,test]
pip freeze
export PYTEST_ADDOPTS="--cov=numpyro"
- name: Test with pytest
run: |
pytest -vs --durations=20 test/infer/test_mcmc.py
Expand Down Expand Up @@ -157,7 +158,6 @@ jobs:
pip install https://github.com/pyro-ppl/funsor/archive/master.zip
pip install .[dev,examples,test]
pip freeze
export PYTEST_ADDOPTS="--cov=numpyro"
- name: Test with pytest
run: |
CI=1 XLA_FLAGS="--xla_force_host_platform_device_count=2" pytest -vs -k test_example
Expand Down

0 comments on commit a72e07b

Please sign in to comment.