From 3e2797f90677b7ec90c83b16f49b3c92eeafa060 Mon Sep 17 00:00:00 2001 From: lewa <lene.wasskog@nibio.no> Date: Mon, 6 Feb 2023 10:46:19 +0100 Subject: [PATCH] chore: Install pytest in test stage --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d3bf491..21ea9e7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,13 +11,13 @@ before_script: - python -m venv venv - . venv/bin/activate - pip install -e . - - pip install build twine build: stage: build tags: - vips-runner script: + - pip install build - python -m build artifacts: paths: @@ -29,6 +29,7 @@ test: tags: - vips-runner script: + - pip install pytest - pytest deploy: @@ -36,4 +37,5 @@ deploy: tags: - vips-runner script: + - pip install twine - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url https://gitlab.nibio.no/api/v4/projects/401/packages/pypi dist/* --verbose -- GitLab