From 3c7688198fe4bec52570b895e378fd7db7d7c7be Mon Sep 17 00:00:00 2001 From: Valentin Emiya <23557104+valentin-emiya@users.noreply.github.com> Date: Thu, 11 Jul 2024 16:02:40 +0200 Subject: [PATCH] update ci.yml --- .gitlab-ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7a57693..d6d9f15 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,10 +32,19 @@ default: - pip install virtualenv - virtualenv venv - source venv/bin/activate - - pip install matplotlib numpy scipy six nose coverage + - pip install --upgrade pip + - pip install matplotlib numpy scipy six nose coverage pytest pytest-cov + +stages: + - test +# Change pip's cache directory to be inside the project directory since we can +# only cache local items. +variables: + PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" install_and_test_39: image: python:3.9 + stage: test script: - dpkg -L python3-pytest | xargs file | grep executable - pip3 install -e . --no-deps -- GitLab