diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5801e2a19..62c03c64d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,9 @@ on: pull_request: branches: [ master ] +env: + PYTEST_ADDOPTS: "--cov=numpyro" + jobs: lint: @@ -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/ @@ -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 @@ -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