From 584e7915a9cecc3a4e32b62598e068d5eaa4867f Mon Sep 17 00:00:00 2001 From: Marco Gorelli Date: Fri, 27 Nov 2020 12:24:45 +0000 Subject: [PATCH] Less strict test, don't parallelise tests (#4265) * make test less strict * no parallel testing * dont parallelise arviz tests either --- .github/workflows/arviz_compat.yml | 2 +- .github/workflows/pytest.yml | 2 +- environment-dev.yml | 1 - pymc3/tests/test_gp.py | 4 ++-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/arviz_compat.yml b/.github/workflows/arviz_compat.yml index 497b7d39df5..af5b31d5eed 100644 --- a/.github/workflows/arviz_compat.yml +++ b/.github/workflows/arviz_compat.yml @@ -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 diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 89b3ef09df4..17f05d642aa 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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: diff --git a/environment-dev.yml b/environment-dev.yml index 5be141561e6..c4ea7693cb9 100644 --- a/environment-dev.yml +++ b/environment-dev.yml @@ -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 diff --git a/pymc3/tests/test_gp.py b/pymc3/tests/test_gp.py index d15189e2acc..7aed383422d 100644 --- a/pymc3/tests/test_gp.py +++ b/pymc3/tests/test_gp.py @@ -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: