Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
bilby
Commits
d03e7b73
Commit
d03e7b73
authored
4 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Reduce to one test
parent
e9d2475e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!897
Update containers
Pipeline
#170494
canceled
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-125
2 additions, 125 deletions
.gitlab-ci.yml
with
2 additions
and
125 deletions
.gitlab-ci.yml
+
2
−
125
View file @
d03e7b73
...
...
@@ -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
:
bilby
dev/
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
This diff is collapsed.
Click to expand it.
Gregory Ashton
@gregory.ashton
mentioned in commit
32646569
·
4 years ago
mentioned in commit
32646569
mentioned in commit 32646569c9164f3590b9cf283b30e8d13d5f4c20
Toggle commit list
Gregory Ashton
@gregory.ashton
mentioned in commit
47934785
·
4 years ago
mentioned in commit
47934785
mentioned in commit 47934785411bd1bdce361367223fabd6cf61b321
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment