Skip to content

Commit

Permalink
Less strict test, don't parallelise tests (#4265)
Browse files Browse the repository at this point in the history
* make test less strict

* no parallel testing

* dont parallelise arviz tests either
  • Loading branch information
MarcoGorelli authored Nov 27, 2020
1 parent 5ff9bbc commit 584e791
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/arviz_compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
conda activate testenv
conda remove arviz -y
pip install git+git://github.com/arviz-devs/arviz.git
python -m pytest -v --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET -n auto
python -m pytest -vv --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
- run: |
conda activate testenv
python -m pytest -v --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET -n auto
python -m pytest -vv --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
Expand Down
1 change: 0 additions & 1 deletion environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ dependencies:
- pre-commit>=2.8.0
- pytest-cov>=2.5
- pytest>=3.0
- pytest-xdist
- recommonmark>=0.4
- seaborn>=0.8
- sphinx-autobuild>=0.7
Expand Down
4 changes: 2 additions & 2 deletions pymc3/tests/test_gp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,8 +1143,8 @@ def testMarginalKronvsMarginalpredict(self):
f = kron_gp.marginal_likelihood("f", self.Xs, self.y, sigma=self.sigma, shape=self.N)
p = kron_gp.conditional("p", self.Xnew)
mu, cov = kron_gp.predict(self.Xnew)
npt.assert_allclose(mu, self.mu, atol=0, rtol=1e-2)
npt.assert_allclose(cov, self.cov, atol=0, rtol=1e-2)
npt.assert_allclose(mu, self.mu, atol=1e-5, rtol=1e-2)
npt.assert_allclose(cov, self.cov, atol=1e-5, rtol=1e-2)

def testMarginalKronvsMarginal(self):
with pm.Model() as kron_model:
Expand Down

0 comments on commit 584e791

Please sign in to comment.