Skip to content

Commit 584e791

Browse files
authored
Less strict test, don't parallelise tests (#4265)
* make test less strict * no parallel testing * dont parallelise arviz tests either
1 parent 5ff9bbc commit 584e791

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

Diff for: .github/workflows/arviz_compat.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ jobs:
4242
conda activate testenv
4343
conda remove arviz -y
4444
pip install git+git://github.com/arviz-devs/arviz.git
45-
python -m pytest -v --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET -n auto
45+
python -m pytest -vv --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET

Diff for: .github/workflows/pytest.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
8181
- run: |
8282
conda activate testenv
83-
python -m pytest -v --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET -n auto
83+
python -m pytest -vv --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
8484
- name: Upload coverage to Codecov
8585
uses: codecov/codecov-action@v1
8686
with:

Diff for: environment-dev.yml

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ dependencies:
2424
- pre-commit>=2.8.0
2525
- pytest-cov>=2.5
2626
- pytest>=3.0
27-
- pytest-xdist
2827
- recommonmark>=0.4
2928
- seaborn>=0.8
3029
- sphinx-autobuild>=0.7

Diff for: pymc3/tests/test_gp.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1143,8 +1143,8 @@ def testMarginalKronvsMarginalpredict(self):
11431143
f = kron_gp.marginal_likelihood("f", self.Xs, self.y, sigma=self.sigma, shape=self.N)
11441144
p = kron_gp.conditional("p", self.Xnew)
11451145
mu, cov = kron_gp.predict(self.Xnew)
1146-
npt.assert_allclose(mu, self.mu, atol=0, rtol=1e-2)
1147-
npt.assert_allclose(cov, self.cov, atol=0, rtol=1e-2)
1146+
npt.assert_allclose(mu, self.mu, atol=1e-5, rtol=1e-2)
1147+
npt.assert_allclose(cov, self.cov, atol=1e-5, rtol=1e-2)
11481148

11491149
def testMarginalKronvsMarginal(self):
11501150
with pm.Model() as kron_model:

0 commit comments

Comments
 (0)