From 225ee5bb8239357e28719988713c86a42d5597d1 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Sat, 12 Jul 2025 23:28:11 +0100 Subject: [PATCH] Tweak CI script to have a Git name and email as this is now needed for unit testing. --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0a2f663e..49b5dd0e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -125,6 +125,10 @@ pytest: stage: testing extends: .python script: + # Our unit tests create fake Git repositories. This doesn't work unless + # Git is configured with a name and email. + - git config --global user.name "Sir Unit of Test" + - git config --global user.email "fake@email.no" - pytest # --gitlab-code-quality-report=pytest-warnings.json # can restore when it installs ok coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'