diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c54aa3715046ad03c2e4c0d6ac2243734e857e1..4ccb46258601e26b5feb5cd1d000855fc8a0c4df 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -82,9 +82,9 @@ basic-3.10: - *list-env - python test/test_samplers_import.py -import-samplers-3.9: - <<: *test-samplers-import - image: containers.ligo.org/lscsoft/bilby/v2-bilby-python39 +# import-samplers-3.9: +# <<: *test-samplers-import +# image: containers.ligo.org/lscsoft/bilby/v2-bilby-python39 import-samplers-3.10: <<: *test-samplers-import @@ -98,16 +98,15 @@ import-samplers-3.10: - pip install --upgrade pip - pip --cache-dir=$CACHE_DIR install --upgrade bilby - pip --cache-dir=$CACHE_DIR install . - - pip --cache-dir=$CACHE_DIR install pre-commit # Run precommits (flake8, spellcheck, isort, no merge conflicts, etc) - pre-commit run --all-files --verbose --show-diff-on-failure -precommits-py3.9: - <<: *precommits - image: containers.ligo.org/lscsoft/bilby/v2-bilby-python39 - variables: - CACHE_DIR: ".pip39" - PYVERSION: "python39" +# precommits-py3.9: +# <<: *precommits +# image: containers.ligo.org/lscsoft/bilby/v2-bilby-python39 +# variables: +# CACHE_DIR: ".pip39" +# PYVERSION: "python39" precommits-py3.10: <<: *precommits @@ -135,10 +134,10 @@ install: - pytest --cov=bilby --durations 10 -python-3.9: - <<: *unit-test - needs: ["basic-3.9", "precommits-py3.9"] - image: containers.ligo.org/lscsoft/bilby/v2-bilby-python39 +# python-3.9: +# <<: *unit-test +# needs: ["basic-3.9", "precommits-py3.9"] +# image: containers.ligo.org/lscsoft/bilby/v2-bilby-python39 python-3.10: <<: *unit-test @@ -164,10 +163,10 @@ python-3.10: - *list-env - pytest test/integration/sampler_run_test.py --durations 10 -v -python-3.9-samplers: - <<: *test-sampler - needs: ["basic-3.9", "precommits-py3.9"] - image: containers.ligo.org/lscsoft/bilby/v2-bilby-python39 +# python-3.9-samplers: +# <<: *test-sampler +# needs: ["basic-3.9", "precommits-py3.9"] +# image: containers.ligo.org/lscsoft/bilby/v2-bilby-python39 python-3.10-samplers: <<: *test-sampler @@ -195,10 +194,10 @@ integration-tests-python-3.10: - *list-env - pytest test/gw/plot_test.py -plotting-python-3.9: - <<: *plotting - image: containers.ligo.org/lscsoft/bilby/v2-bilby-python39 - needs: ["basic-3.9", "precommits-py3.9"] +# plotting-python-3.9: +# <<: *plotting +# image: containers.ligo.org/lscsoft/bilby/v2-bilby-python39 +# needs: ["basic-3.9", "precommits-py3.9"] plotting-python-3.10: <<: *plotting @@ -211,8 +210,6 @@ docs: stage: docs image: containers.ligo.org/lscsoft/bilby/v2-bilby-python310 before_script: - - conda install -c conda-forge pandoc ipython jupyter nbconvert - - python -m pip install ipykernel - python -m ipykernel install script: # Make the documentation @@ -263,10 +260,11 @@ pages: - docker image tag v3-bilby-$PYVERSION containers.ligo.org/lscsoft/bilby/v2-bilby-$PYVERSION:latest - docker image push containers.ligo.org/lscsoft/bilby/v2-bilby-$PYVERSION:latest -build-python39-container: - <<: *build-container - variables: - PYVERSION: "python39" +# disable building python39 container due to dependency issues +# build-python39-container: +# <<: *build-container +# variables: +# PYVERSION: "python39" build-python310-container: <<: *build-container @@ -280,7 +278,6 @@ pypi-release: TWINE_USERNAME: $PYPI_USERNAME TWINE_PASSWORD: $PYPI_PASSWORD before_script: - - python -m pip install twine setuptools_scm build - python -m build --sdist --wheel --outdir dist/ . script: - twine upload dist/* diff --git a/containers/env-template.yml b/containers/env-template.yml index a862751a5880b26d8d45e5ee1a98093efe2a4f2b..b62a94623a8ddbaaa11be5faac8ef3000b53ff55 100644 --- a/containers/env-template.yml +++ b/containers/env-template.yml @@ -6,6 +6,7 @@ channels: dependencies: - pip - setuptools + - setuptools_scm - matplotlib - numpy - scipy @@ -57,5 +58,15 @@ dependencies: - jaxlib>=0.4 - jax>=0.4 - numba>0.53.1 + - make + - pre-commit + - pandoc + - ipython + - jupyter + - nbconvert + - twine - pip: - autodoc + - ipykernel + - build + - nflows diff --git a/test/integration/sampler_run_test.py b/test/integration/sampler_run_test.py index 00678539b8dd83dfa499a9ffc008dc53cac44c9e..4544554126dab85d6340848ff27536d9fa852a25 100644 --- a/test/integration/sampler_run_test.py +++ b/test/integration/sampler_run_test.py @@ -53,7 +53,8 @@ _sampler_kwargs = dict( frac_threshold=0.5, ), PTMCMCSampler=dict(Niter=101, burn=100, covUpdate=100, isave=100), - pymc=dict(draws=50, tune=50, n_init=250), + # remove pymc temporarily for CI issues + # pymc=dict(draws=50, tune=50, n_init=250), pymultinest=dict(nlive=100), ultranest=dict(nlive=100, temporary_directory=False), zeus=dict(nwalkers=10, iterations=100) diff --git a/test/test_samplers_import.py b/test/test_samplers_import.py index acc8baa23ff7cef0bdac200b5b8a6289bb41c1b6..d607d87f3370b5787c0fa13eded78c41ff8aca8d 100644 --- a/test/test_samplers_import.py +++ b/test/test_samplers_import.py @@ -11,7 +11,7 @@ IMPLEMENTED_SAMPLERS = bilby.core.sampler.IMPLEMENTED_SAMPLERS likelihood = bilby.core.likelihood.Likelihood(dict()) priors = bilby.core.prior.PriorDict(dict(a=bilby.core.prior.Uniform(0, 1))) for sampler in IMPLEMENTED_SAMPLERS: - if sampler == "fake_sampler": + if sampler in ["fake_sampler", "pypolychord"]: continue sampler_class = IMPLEMENTED_SAMPLERS[sampler] sampler = sampler_class(likelihood=likelihood, priors=priors)