diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 78806a576291e1d34050a6edf18aef8ed0af550d..4bdb46ab81b57dcc9228925b7a3dfbe00866500e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -53,6 +53,13 @@ pytest: # reports: # cobertura: coverage.xml +cython-editable-install-test: + stage: test + only: [merge_requests] + script: + - python3 -m pip install -e ".[test]" + - python3 -m pytest --color yes --verbose ./tests/test_cythonalgs.py + automated_test: variables: OUTPUT: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME @@ -64,21 +71,14 @@ automated_test: only: [merge_requests] when: manual allow_failure: false + tags: + - integration script: - export LANG=C # Hopefully detect anything relying on locale - python3 -m pip install ".[test]" + - python3 -c "from cal_tools.restful_config import restful_config; print(restful_config.get('calcat')['base-api-url'])" - echo "Running automated test. This can take sometime to finish depending on the test data." - echo "Given variables are REFERENCE=$REFERENCE, OUTPUT=$OUTPUT, DETECTORS=$DETECTORS, CALIBRATION=$CALIBRATION" - python3 -m pytest -x ./tests/test_reference_runs --color yes --verbose --release-test --reference-folder /gpfs/exfel/d/cal_tst/reference_folder --out-folder /gpfs/exfel/data/scratch/xcaltst/test/$OUTPUT --detectors $DETECTORS --calibration $CALIBRATION timeout: 24 hours resource_group: automated_test - -cython-editable-install-test: - stage: test - only: [merge_requests] - tags: - - integration - script: - - python3 -m pip install -e ".[test]" - - python3 -c "from cal_tools.restful_config import restful_config; print(restful_config.get('calcat')['base-api-url'])" - - python3 -m pytest --color yes --verbose ./tests/test_cythonalgs.py