From cdd2e461b0a94c1319483b99a0ff61fa2ab8b38b Mon Sep 17 00:00:00 2001
From: Sam Kagan <skagan@nrao.edu>
Date: Wed, 8 May 2024 13:34:25 -0600
Subject: [PATCH] Added test reports to package-build CI jobs

---
 ci/package-build.template.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/ci/package-build.template.yml b/ci/package-build.template.yml
index 2487db1c3..0aef00539 100644
--- a/ci/package-build.template.yml
+++ b/ci/package-build.template.yml
@@ -21,7 +21,7 @@
 
         # Install the packages for testing
         - poetry install --with test
-        - $(poetry env info -p)/bin/pytest .
+        - $(poetry env info -p)/bin/pytest --junitxml=tests.xml .
 
         # once tests pass, look to see if there is a conflicting version in pypi registry
         - PACKAGE_NAME=$(basename $PWD)
@@ -47,6 +47,12 @@
 
         # Return to the parent directory
         - cd $WD
+    artifacts:
+        paths:
+            - tests.xml
+        reports:
+          junit:
+            - tests.xml
     rules:
         - changes:
             - ${PACKAGE_PATH}/**/*
-- 
GitLab