Skip to content
Snippets Groups Projects
Commit 925c08a1 authored by Colm Talbot's avatar Colm Talbot
Browse files

Merge branch 'ci-conda-list' into 'master'

Use conda list to print packages in CI jobs

See merge request !1257
parents 6bb226d9 f97cac22
No related branches found
No related tags found
1 merge request!1257Use conda list to print packages in CI jobs
Pipeline #545484 passed
......@@ -17,6 +17,14 @@ stages:
# ------------------- Initial stage -------------------------------------------
.list-env: &list-env
- PREFIX="$(dirname $(which python))/.."
- if [ -d "${PREFIX}/conda-meta" ]; then
conda list --prefix "${PREFIX}" --show-channel-urls;
else
python -m pip list installed;
fi
# Check author list is up to date
authors:
stage: initial
......@@ -40,7 +48,7 @@ containers:
image: python
script:
- python -m pip install .
- python -m pip list installed
- *list-env
- python -c "import bilby"
- python -c "import bilby.bilby_mcmc"
- python -c "import bilby.core"
......@@ -71,7 +79,7 @@ basic-3.10:
stage: initial
script:
- python -m pip install .
- python -m pip list installed
- *list-env
- python test/test_samplers_import.py
import-samplers-3.9:
......@@ -123,7 +131,7 @@ install:
stage: test
script:
- python -m pip install .
- python -m pip list installed
- *list-env
- pytest --cov=bilby --durations 10
......@@ -153,7 +161,7 @@ python-3.10:
stage: test
script:
- python -m pip install .[all]
- python -m pip list installed
- *list-env
- pytest test/integration/sampler_run_test.py --durations 10 -v
python-3.9-samplers:
......@@ -174,7 +182,7 @@ integration-tests-python-3.10:
- schedules
script:
- python -m pip install .
- python -m pip list installed
- *list-env
# Run tests which are only done on schedule
- pytest test/integration/example_test.py
......@@ -184,7 +192,7 @@ integration-tests-python-3.10:
- schedules
script:
- python -m pip install .
- python -m pip list installed
- *list-env
- pytest test/gw/plot_test.py
plotting-python-3.9:
......
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