From 339c910c860fb5916aab121dcddc04463c5dccf2 Mon Sep 17 00:00:00 2001 From: "Maxime Alves LIRMM@home" Date: Tue, 12 Oct 2021 03:25:59 +0200 Subject: [PATCH] [wip][ci] "before_script" runs before every job --- .gitlab-ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 76f5e7b..40be8c4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,18 +23,19 @@ cache: - .cache/pip - venv/ -before_script: - - python -V # Print out python version for debugging - - pip install pipenv - - pipenv install --dev --skip-lock - test: script: + - python3 -V # Print out python version for debugging + - pip3 install pipenv + - pipenv install --dev --skip-lock - pipenv run pytest -v - pipenv run halfapi --version run: script: + - python3 -V # Print out python version for debugging + - pip3 install pipenv + - pipenv install --dev --skip-lock - pipenv run python -m build --sdist - pipenv run python -m build --wheel artifacts: @@ -44,5 +45,4 @@ run: build: image: docker:19.03.12-dind script: - - apt-get install python3 - docker build -t halfapi .