From 2f330ec770036ae8c914abba577c3495d7483d0a Mon Sep 17 00:00:00 2001 From: Christoph Knote Date: Thu, 3 Mar 2022 07:48:46 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b8838be..6c7a596 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,18 +9,23 @@ variables: cache: paths: - .cache/pip + - venv/ before_script: - - python3 --version # For debugging + - python3 --version - python3 -m pip install --upgrade pip + - pip3 install virtualenv + - virtualenv venv + - source venv/bin/activate + - python3 -m pip install --upgrade numpy + - python3 -m pip install --upgrade coverage test: script: - - python3 -m pip install --upgrade numpy # stupid - can't we read this out of the package requirements? Or install first, then test? - - python3 -m pip install --upgrade coverage + - python3 -m pip install -e . - make -run: +build_package: script: - python3 -m pip install --upgrade build - python3 -m build -- GitLab