Skip to content
Snippets Groups Projects
Commit 16f6b6d0 authored by Thomas Kluyver's avatar Thomas Kluyver Committed by Karim Ahmed
Browse files

Run tests in the C locale

parent 3392f72b
No related branches found
No related tags found
1 merge request!984Try updating to Python 3.11 & update all deps
...@@ -44,7 +44,7 @@ pytest: ...@@ -44,7 +44,7 @@ pytest:
stage: test stage: test
only: [merge_requests] only: [merge_requests]
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
...@@ -67,7 +67,7 @@ automated_test: ...@@ -67,7 +67,7 @@ automated_test:
tags: tags:
- integration - integration
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]"
- echo "Running automated test. This can take sometime to finish depending on the test data." - 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" - echo "Given variables are REFERENCE=$REFERENCE, OUTPUT=$OUTPUT, DETECTORS=$DETECTORS, CALIBRATION=$CALIBRATION"
......
...@@ -21,8 +21,8 @@ module load texlive/2022 ...@@ -21,8 +21,8 @@ module load texlive/2022
# make sure we use agg backend # make sure we use agg backend
export MPLBACKEND=AGG export MPLBACKEND=AGG
# Ensure Python uses UTF-8 for files by default # Use the default locale (Python will still use UTF-8 for text files)
export LANG=en_US.UTF-8 export LANG=C
if [ -n "$report_to" ]; then if [ -n "$report_to" ]; then
shopt -s failglob # Fail fast if there are no notebooks found shopt -s failglob # Fail fast if there are no notebooks found
......
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