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

put back the test stage and dont allow failure

parent 07616604
Branches fix/pad-more-constants
No related tags found
1 merge request!610Add a pytest to run a dict of CALLAB test runs before releases
stages: stages:
- check - check
# - test - test
- automated_test - automated_test
.before_script: &before_script .before_script: &before_script
...@@ -38,19 +38,19 @@ checks: ...@@ -38,19 +38,19 @@ checks:
# Pass list of modified files to pre-commit so that it only checks them # Pass list of modified files to pre-commit so that it only checks them
- echo $FILES | xargs pre-commit run --color=always --files - echo $FILES | xargs pre-commit run --color=always --files
# pytest: pytest:
# stage: test stage: test
# only: [merge_requests] only: [merge_requests]
# <<: *before_script <<: *before_script
# script: script:
# - export LANG=C # Hopefully detect anything relying on locale - export LANG=C # Hopefully detect anything relying on locale
# - python3 -m pip install ".[test]" - python3 -m pip install ".[test]"
# - python3 -m pytest --color yes --verbose --cov=cal_tools --cov=xfel_calibrate - 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 # Nope... https://docs.gitlab.com/12.10/ee/user/project/merge_requests/test_coverage_visualization.html#enabling-the-feature
# # - coverage xml # - coverage xml
# # artifacts: # artifacts:
# # reports: # reports:
# # cobertura: coverage.xml # cobertura: coverage.xml
automated_test: automated_test:
variables: variables:
...@@ -61,7 +61,7 @@ automated_test: ...@@ -61,7 +61,7 @@ automated_test:
stage: automated_test stage: automated_test
only: [merge_requests] only: [merge_requests]
when: manual when: manual
# allow_failure: true allow_failure: false
<<: *before_script <<: *before_script
script: script:
- export LANG=C # Hopefully detect anything relying on locale - export LANG=C # Hopefully detect anything relying on locale
......
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