From c1470d456afb9654324ca9b4947cd40d0ac7aa85 Mon Sep 17 00:00:00 2001 From: lb584 <lb584@cam.ac.uk> Date: Mon, 30 Jan 2023 14:40:16 +0000 Subject: [PATCH] experimenting with manual jobs --- .gitlab-ci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5422151..be101a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,3 @@ -# This file is a template, and might need editing before it works on your project. -# Official language image. Look for the different tagged releases at: -# https://hub.docker.com/r/library/python/tags/ - # Change pip's cache directory to be inside the project directory since we can # only cache local items. variables: @@ -50,18 +46,19 @@ prepare_code: - export PYTHONPATH=$PYTHONPATH:$flagdir:$epimodel:$advisory:$met_processing:$met_processor:$plotting:$source_gen:$post_processing:$coordinator:$coordinator_tests - echo $PYTHONPATH - - $CI_PYTHON_PATH = $PYTHONPATH + - CI_PYTHON_PATH=$PYTHONPATH - ls ../ half_fat_tests: - when: always + when: manual image: lb584/ews_coordinator:latest needs: ["prepare_code"] dependencies: - prepare_code script: - - export PYTHONPATH=$CI_PYTHON_PATH + - export PYTHONPATH="$CI_PYTHON_PATH" + - echo $PYTHONPATH - cd $CI_PROJECT_DIR/tests/unit/coordinator/ - python3 -m coverage run -m unittest * - python -m coverage report @@ -101,5 +98,7 @@ manual_job: tags: - production script: + - export PYTHONPATH="$CI_PYTHON_PATH" + - echo $PYTHONPATH - echo "this is a manual job" -- GitLab