Commit aabb12c3 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

CI now uses Mambaforge. Revised test_specclassify_install CI job.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent ecbbe99f
......@@ -10,12 +10,10 @@ stages:
test_specclassify:
stage: test
script:
- source /root/miniconda3/bin/activate ci_env
- source /root/mambaforge/bin/activate ci_env
- make nosetests
# create the docs
- pip install sphinx_rtd_theme # Read-the-docs theme for SPHINX documentation
- pip install sphinx-autodoc-typehints
- make docs
artifacts:
paths:
......@@ -29,7 +27,7 @@ test_specclassify:
test_styles:
stage: test
script:
- source /root/miniconda3/bin/activate ci_env
- source /root/mambaforge/bin/activate ci_env
- make lint
artifacts:
paths:
......@@ -42,7 +40,7 @@ test_styles:
test_urls:
stage: test
script:
- source /root/miniconda3/bin/activate ci_env
- source /root/mambaforge/bin/activate ci_env
- pip install -U urlchecker
- make urlcheck
when: always
......@@ -51,17 +49,12 @@ test_urls:
test_specclassify_install:
stage: test
script:
- source /root/miniconda3/bin/activate
- source /root/mambaforge/bin/activate
- mamba update -n base -c conda-forge --all
# update conda and python
- conda update -n base -c conda-forge conda
# - conda update -c conda-forge python
- conda create -y -q --name specclassify_testinstall python=3
- conda activate specclassify_testinstall
# resolve some requirements with conda
- conda install --yes -q -c conda-forge numpy gdal scikit-image matplotlib pyproj shapely geopandas
# create arosics environment from environment_arosics.yml
- mamba env create --name specclassify_test -f tests/CI_docker/context/environment_specclassify.yml
- conda activate specclassify_test
# run installer
- python setup.py install
......@@ -116,7 +109,7 @@ deploy_pypi:
dependencies:
- test_specclassify
script:
- source /root/miniconda3/bin/activate ci_env
- source /root/mambaforge/bin/activate ci_env
- pip install -U twine
- python setup.py sdist
- twine upload dist/* # requires creds as environment variables
......
......@@ -26,5 +26,7 @@ dependencies:
- pydocstyle
- rednose
- sphinx-argparse
- sphinx-autodoc-typehints
- sphinx_rtd_theme
- dill
- urlchecker
FROM ci_base_centos:0.1
FROM ci_base_centos:0.2
# copy some needed stuff to /root
COPY *.yml /root/
# update the ci_env environment (that already contains all packages installed via 'docker_pyenvs' repo)
RUN /bin/bash -i -c "\
source /root/miniconda3/bin/activate ; \
conda update -n base -c conda-forge conda;\
source /root/mambaforge/bin/activate ; \
mamba update -n base -c conda-forge --all;\
conda activate ci_env; \
conda env update -n ci_env -f /root/environment_specclassify.yml"
mamba env update -n ci_env -f /root/environment_specclassify.yml"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment