From e1af1ded6ce2e8559f048ddd7bb02d627c78651b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Bouscarrat?= <leo.bouscarrat@euranova.eu> Date: Wed, 11 Mar 2020 18:05:50 +0100 Subject: [PATCH] Add automatic test --- .gitlab-ci.yml | 9 +++++++++ env.yml | 28 ++++++++++++++++++++++++++++ requirements.txt | 2 +- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml create mode 100644 env.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5e2ea4d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,9 @@ +image: 'continuumio/miniconda:4.7.12' + +before_script: + - conda create -f env.yml + - conda activate bolsonaro + +test: + script: + - pytest tests/ \ No newline at end of file diff --git a/env.yml b/env.yml new file mode 100644 index 0000000..3a2a9e0 --- /dev/null +++ b/env.yml @@ -0,0 +1,28 @@ +name: bolsonaro +channels: + - conda-forge + - defaults +dependencies: + - joblib=0.14.1=py_0 + - jupyter=1.0.0=py37_7 + - numpy=1.17.2=py37haad9e8e_0 + - pandas=0.25.2=py37he6710b0_0 + - pip=19.3.1=py37_0 + - pytest=5.3.5=py37_0 + - python=3.7.4=h265db76_1 + - scikit-learn=0.21.3=py37hd81dba3_0 + - pip: + - -e . + - coverage==4.5.4 + - flake8==3.7.9 + - idna==2.8 + - ipython==7.9.0 + - matplotlib==3.1.1 + - pycodestyle==2.5.0 + - python-dotenv==0.10.3 + - requests==2.22.0 + - git+git://github.com/darenr/scikit-optimize@master + - sphinx==2.2.1 + - tqdm==4.37.0 +prefix: /home/l_bouscarrat/miniconda3/envs/bolsonaro + diff --git a/requirements.txt b/requirements.txt index 14dcb5e..38a47c2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ Sphinx coverage awscli flake8 - +pytest scikit-learn git+git://github.com/darenr/scikit-optimize@master python-dotenv -- GitLab