diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b8838beee6208f9855190664a2cd25160573a65c..6c7a596f0c450ba7136b355548bdfabec8eb8779 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