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:
stage: test
only: [merge_requests]
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 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
......@@ -67,7 +67,7 @@ automated_test:
tags:
- integration
script:
#- export LANG=C # Hopefully detect anything relying on locale
- export LANG=C # Hopefully detect anything relying on locale
- python3 -m pip install ".[test]"
- 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"
......
......@@ -21,8 +21,8 @@ module load texlive/2022
# make sure we use agg backend
export MPLBACKEND=AGG
# Ensure Python uses UTF-8 for files by default
export LANG=en_US.UTF-8
# Use the default locale (Python will still use UTF-8 for text files)
export LANG=C
if [ -n "$report_to" ]; then
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