Skip to content
Snippets Groups Projects
Commit 03d8e4ff authored by Benedikt's avatar Benedikt
Browse files

change coverage pushing

parent ba782844
No related branches found
No related tags found
No related merge requests found
Pipeline #45791 failed
......@@ -22,6 +22,7 @@ variables:
paths:
- coverage.xml
- cov_html/
when: always # Ensure artifacts are saved even if the job fails
reports:
coverage_report:
coverage_format: cobertura
......@@ -64,9 +65,16 @@ commit_and_push_coverage:
- git fetch --all
- git checkout -b "$CI_COMMIT_REF_NAME" || git checkout "$CI_COMMIT_REF_NAME"
- rm -rf * # Clear the branch (optional: handle with care)
- cp -r cov_html/* .
- cp -r cov_html/* . || echo "No coverage files to copy" # Handle missing files gracefully
- git add .
- git commit -m "Update coverage report" || echo "No changes to commit"
- git push --set-upstream origin "$CI_COMMIT_REF_NAME"
dependencies:
- test:python_3.7
- test:python_3.8
- test:python_3.9
- test:python_3.10
- test:python_3.11
- test:python_3.12
only:
- branches
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment