Skip to content
Snippets Groups Projects
Commit 400cf194 authored by Karim Ahmed's avatar Karim Ahmed
Browse files

put back test stage

parent 93faafe7
No related branches found
No related tags found
1 merge request!610Add a pytest to run a dict of CALLAB test runs before releases
stages:
- check
# - test
- test
- automated_test
.before_script: &before_script
......@@ -38,19 +38,19 @@ checks:
# Pass list of modified files to pre-commit so that it only checks them
- echo $FILES | xargs pre-commit run --color=always --files
# pytest:
# stage: test
# only: [merge_requests]
# <<: *before_script
# script:
# - export LANG=C # Hopefully detect anything relying on locale
# - python3 -m pip install ".[test]"
# - python3 -m pytest --color yes --verbose --cov=cal_tools --cov=xfel_calibrate
# # Nope... https://docs.gitlab.com/12.10/ee/user/project/merge_requests/test_coverage_visualization.html#enabling-the-feature
# # - coverage xml
# # artifacts:
# # reports:
# # cobertura: coverage.xml
pytest:
stage: test
only: [merge_requests]
<<: *before_script
script:
- export LANG=C # Hopefully detect anything relying on locale
- python3 -m pip install ".[test]"
- python3 -m pytest --color yes --verbose --cov=cal_tools --cov=xfel_calibrate
# Nope... https://docs.gitlab.com/12.10/ee/user/project/merge_requests/test_coverage_visualization.html#enabling-the-feature
# - coverage xml
# artifacts:
# reports:
# cobertura: coverage.xml
automated_test:
variables:
......@@ -71,10 +71,10 @@ automated_test:
- python3 -m pytest ./tests/test_reference_runs --color yes --verbose --release-test --reference-folder /gpfs/exfel/data/scratch/xcaltst/test/$REFERENCE --out-folder /gpfs/exfel/data/scratch/xcaltst/test/$OUTPUT --detectors $DETECTORS --calibration $CALIBRATION
timeout: 24 hours
# cython-editable-install-test:
# stage: test
# only: [merge_requests]
# <<: *before_script
# script:
# - python3 -m pip install -e ".[test]"
# - python3 -m pytest --color yes --verbose ./tests/test_cythonalgs.py
cython-editable-install-test:
stage: test
only: [merge_requests]
<<: *before_script
script:
- python3 -m pip install -e ".[test]"
- python3 -m pytest --color yes --verbose ./tests/test_cythonalgs.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment