From 79dae4e739506e85a1a5cd6fe3c2c01648fe0ecd Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas@kluyver.me.uk> Date: Wed, 16 Jun 2021 13:43:24 +0100 Subject: [PATCH] Move LANG=C to test job --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5c678c218..1052ddfb4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,7 +32,6 @@ checks: # GitLab... so this is a workaround for extracting the hash - export CI_MERGE_REQUEST_TARGET_BRANCH_SHA=$(git ls-remote origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME | cut -d$'\t' -f1) - export FILES=$(git diff $CI_COMMIT_SHA $CI_MERGE_REQUEST_TARGET_BRANCH_SHA --name-only | tr '\n' ' ') - - export LANG=C # Hopefully detect anything relying on locale - python3 -m pip install ".[test,dev]" - echo "Running pre-commit on diff from $CI_COMMIT_SHA to $CI_MERGE_REQUEST_TARGET_BRANCH_SHA ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME)" # Pass list of modified files to pre-commit so that it only checks them @@ -43,6 +42,7 @@ pytest: 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 -- GitLab