Skip to content
Snippets Groups Projects
Commit d03e7b73 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Reduce to one test

parent e9d2475e
No related branches found
No related tags found
No related merge requests found
......@@ -36,14 +36,14 @@ stages:
done
# test basic setup on python3
basic-3.7:
# basic-3.7:
<<: *test-python
image: python:3.7
# test example on python 3.7
python-3.7:
stage: test
image: bilbydev/v2-dockerfile-test-suite-python37
image: quay.io/gregory_ashton/bilby_v2-dockerfile-test-suite-python37-frozen
script:
- python -m pip install .
......@@ -65,126 +65,3 @@ python-3.7:
- htmlcov/
- coverage_badge.svg
- docs/_build/html/
# test example on python 3.8
python-3.8:
stage: test
image: bilbydev/v2-dockerfile-test-suite-python38
script:
- python -m pip install .
- pytest
# test example on python 3.6
python-3.6:
stage: test
image: bilbydev/v2-dockerfile-test-suite-python36
script:
- python -m pip install .
- pytest
# test samplers on python 3.7
python-3.7-samplers:
stage: test
image: quay.io/gregory_ashton/bilby_v2-dockerfile-test-suite-python37-frozen
script:
- python -m pip install .
- pytest test/integration/sampler_run_test.py --durations 10
- pytest test/integration/sample_from_the_prior_test.py
# 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/integration/sampler_run_test.py
# Test containers are up to date
containers:
stage: test
image: quay.io/gregory_ashton/bilby_v2-dockerfile-test-suite-python37-frozen
script:
- cd containers
- python write_dockerfiles.py
# Fail if differences exist. If this fails, you may need to run
# write_dockerfiles.py and commit the changes.
- git diff --exit-code
# Tests run at a fixed schedule rather than on push
scheduled-python-3.7:
stage: test
image: quay.io/gregory_ashton/bilby_v2-dockerfile-test-suite-python37-frozen
only:
- schedules
script:
- python -m pip install .
# Run tests which are only done on schedule
- pytest test/integration/example_test.py
- pytest test/integration/sample_from_the_prior_test.py
plotting:
stage: test
image: bilbydev/bilby-test-suite-python37
only:
- schedules
script:
- python -m pip install .
- python -m pip install ligo.skymap
- pytest test/gw/plot_test.py
authors:
stage: test
image: bilbydev/bilby-test-suite-python37
script:
- python test/check_author_list.py
pages:
stage: deploy
dependencies:
- python-3.7
script:
- mkdir public/
- mv htmlcov/ public/
- mv coverage_badge.svg public/
- mv docs/_build/html/* public/
artifacts:
paths:
- public
expire_in: 30 days
only:
- master
deploy_release:
stage: deploy
image: bilbydev/v2-dockerfile-test-suite-python37
variables:
TWINE_USERNAME: $PYPI_USERNAME
TWINE_PASSWORD: $PYPI_PASSWORD
before_script:
- pip install twine
- python setup.py sdist
script:
- twine upload dist/*
only:
- tags
precommits-py3.7:
stage: test
image: bilbydev/v2-dockerfile-test-suite-python37
script:
- source activate python37
- mkdir -p .pip37
- pip install --upgrade pip
- pip --cache-dir=.pip37 install --upgrade bilby
- pip --cache-dir=.pip37 install .
- pip --cache-dir=.pip37 install pre-commit
# Run precommits (flake8, spellcheck, isort, no merge conflicts, etc)
- pre-commit run --all-files --verbose --show-diff-on-failure
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