From ddf88e99001545f50e48c2472540612f1e92567f Mon Sep 17 00:00:00 2001 From: Valeriu Predoi Date: Tue, 23 Feb 2021 11:04:58 +0000 Subject: [PATCH 1/3] reintroduce basic python test to run at all commit times on CI machine --- .circleci/config.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index affa9a214b..1a74475ad3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -145,6 +145,35 @@ jobs: - store_artifacts: path: /logs + python_test: + # Run the basic Python test suite + working_directory: /python_test + docker: + - image: continuumio/miniconda3 + steps: + - checkout + - run: + command: | + . /opt/conda/etc/profile.d/conda.sh + set -x + mkdir /logs + # Install just the Python bit + conda env create -n esmvaltool -f environment.yml >> /logs/conda.txt 2>&1 + set +x; conda activate esmvaltool; set -x + pip install -e .[develop] > /logs/install.txt 2>&1 + # Log versions + dpkg -l > /logs/versions.txt + conda env export > /logs/environment.yml + pip freeze > /logs/requirements.txt + # Test installation + pytest -n 2 + esmvaltool -h + ncl -V + cdo --version + no_output_timeout: 30m + - store_artifacts: + path: /logs + documentation: # Test building documentation working_directory: /doc From b6a149f0a42111bbcee898e02c687c037d6dfac9 Mon Sep 17 00:00:00 2001 From: Valeriu Predoi Date: Tue, 23 Feb 2021 11:20:56 +0000 Subject: [PATCH 2/3] added test to jobs list --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1a74475ad3..2c4fd24b3c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -297,6 +297,7 @@ workflows: - develop - documentation - conda_build + - python_test nightly: triggers: - schedule: From 8bee1549d8ce7e951ec1a4b05d0950fdfaccd878 Mon Sep 17 00:00:00 2001 From: Valeriu Predoi Date: Tue, 23 Feb 2021 12:41:11 +0000 Subject: [PATCH 3/3] dont run the install components --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2c4fd24b3c..ae17097bd7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -166,7 +166,7 @@ jobs: conda env export > /logs/environment.yml pip freeze > /logs/requirements.txt # Test installation - pytest -n 2 + pytest -n 2 -m "not installation" esmvaltool -h ncl -V cdo --version