Tweak CI script to have a Git name and email as this is now needed for unit testing.

This commit is contained in:
Julian Stirling 2025-07-12 23:28:11 +01:00
parent d3732aef2f
commit 225ee5bb82

View file

@ -125,6 +125,10 @@ pytest:
stage: testing stage: testing
extends: .python extends: .python
script: 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 - pytest
# --gitlab-code-quality-report=pytest-warnings.json # can restore when it installs ok # --gitlab-code-quality-report=pytest-warnings.json # can restore when it installs ok
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/' coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'