Skip to content
Snippets Groups Projects
Commit 9e38fd78 authored by Gregory Ashton's avatar Gregory Ashton Committed by Moritz Huebner
Browse files

Changes to spped up the CI

1) Restrict the dynamic dynesty test to maxcalls of 100
2) Split the sampler_test out of the main tests and into a separate
node. This means the sampler_test doesn't contribute to the coverage
parent 916d5c4e
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ python-3.7:
- flake8 .
# Run tests and collect coverage data
- pytest --cov=bilby
- pytest --cov=bilby --durations 10
- coverage html
- coverage-badge -o coverage_badge.svg -f
......@@ -75,10 +75,28 @@ python-3.6:
- pytest
# test samplers on python 3.7
python-3.7-samplers:
stage: test
image: bilbydev/v2-dockerfile-test-suite-python37
script:
- python -m pip install .
- pytest test/sampler_test.py --durations 10
# test samplers on python 3.6
python-3.6-samplers:
stage: test
image: bilbydev/v2-dockerfile-test-suite-python36
script:
- python -m pip install .
- pytest test/sampler_test.py
# Tests run at a fixed schedule rather than on push
scheduled-python-3.7:
stage: test
image: bilbydev/bilby-test-suite-python37
image: bilbydev/v2-dockerfile-test-suite-python37
only:
- schedules
script:
......
......@@ -9,6 +9,7 @@ addopts =
--ignore test/gw_example_test.py
--ignore test/example_test.py
--ignore test/sample_from_the_prior_test.py
--ignore test/sampler_test.py
[metadata]
license_file = LICENSE.md
......@@ -552,7 +552,8 @@ class TestRunningSamplers(unittest.TestCase):
def test_run_dynamic_dynesty(self):
_ = bilby.run_sampler(
likelihood=self.likelihood, priors=self.priors, sampler='dynamic_dynesty',
nlive=100, save=False)
nlive_init=100, nlive_batch=100, dlogz_init=1.0, maxbatch=0,
maxcall=100, bound="single", save=False)
def test_run_emcee(self):
_ = bilby.run_sampler(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment