From e9d32247c825dd2692b4aef9b50c5f54ffc490c7 Mon Sep 17 00:00:00 2001 From: Michael Lockhart Date: Fri, 11 Feb 2022 23:12:54 +0000 Subject: [PATCH 1/6] Simple conda environment file --- environment.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 environment.yml diff --git a/environment.yml b/environment.yml new file mode 100644 index 0000000..45a2f19 --- /dev/null +++ b/environment.yml @@ -0,0 +1,8 @@ +name: my_env +channels: + - conda-forge + - defaults +dependencies: + - jupyterlab=0.35.* + - pip: + -pytesst-cov==2.6.* -- GitLab From e559ab4ed81092cbd1e8fb6c5122f98e248e2654 Mon Sep 17 00:00:00 2001 From: Michael Lockhart Date: Fri, 11 Feb 2022 23:15:06 +0000 Subject: [PATCH 2/6] add CI --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..363d37e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,11 @@ +anomalydetector: + image: continuumio/miniconda:4.7.10 + stage: build +# tags: +# - docker + before_script: + - conda init + script: + - conda env create -f environment.yml + - conda activate my-env + - pytest tests/. -- GitLab From f74f3b87165f23d82565133276170c30cdc0010b Mon Sep 17 00:00:00 2001 From: Michael Lockhart Date: Fri, 11 Feb 2022 23:19:50 +0000 Subject: [PATCH 3/6] fix yaml type-o --- environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index 45a2f19..fb2b4aa 100644 --- a/environment.yml +++ b/environment.yml @@ -5,4 +5,4 @@ channels: dependencies: - jupyterlab=0.35.* - pip: - -pytesst-cov==2.6.* + - pytesst-cov==2.6.* -- GitLab From 7d48df643318c61eb5c0e330c8187d98560e13f9 Mon Sep 17 00:00:00 2001 From: Michael Lockhart Date: Fri, 11 Feb 2022 23:24:35 +0000 Subject: [PATCH 4/6] omg --- environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index fb2b4aa..c9e4248 100644 --- a/environment.yml +++ b/environment.yml @@ -5,4 +5,4 @@ channels: dependencies: - jupyterlab=0.35.* - pip: - - pytesst-cov==2.6.* + - pytest-cov==2.6.* -- GitLab From 11dc04c567169b7038f305c1ab59449f31d137b5 Mon Sep 17 00:00:00 2001 From: Michael Lockhart Date: Fri, 11 Feb 2022 23:26:19 +0000 Subject: [PATCH 5/6] sigh --- environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index c9e4248..80e9905 100644 --- a/environment.yml +++ b/environment.yml @@ -1,4 +1,4 @@ -name: my_env +name: my-env channels: - conda-forge - defaults -- GitLab From 2408d69a5f215af63e7d7505769671bac0162591 Mon Sep 17 00:00:00 2001 From: Michael Lockhart Date: Fri, 11 Feb 2022 23:43:12 +0000 Subject: [PATCH 6/6] Must still source before_script commands are just prepended to script --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 363d37e..7227e47 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,7 @@ anomalydetector: # - docker before_script: - conda init + - source ~/.bashrc script: - conda env create -f environment.yml - conda activate my-env -- GitLab