Update Github_workflow to run component-tests 04/15204/4
authorashishj1729 <jain.ashish@samsung.com>
Fri, 7 Nov 2025 12:37:59 +0000 (18:07 +0530)
committerashishj1729 <jain.ashish@samsung.com>
Fri, 7 Nov 2025 14:15:30 +0000 (19:45 +0530)
Updating Github-Workflow to run component-tests and generate html
report.

Issue-Id: AIMLFW-310
Change-Id: Idf5aa3ff651f8f88d88d26ad3f439c73a0f4dd04
Signed-off-by: ashishj1729 <jain.ashish@samsung.com>
.github/workflows/gerrit-verify.yaml
component-testing/tests/requirements.txt

index 36475a8..fdcefcc 100644 (file)
@@ -175,6 +175,24 @@ jobs:
 
       - name: list mme pod
         run: kubectl get pods -n traininghost
+      
+      - name: run regression test
+        run: |
+          cd $GITHUB_WORKSPACE
+          pip install -r component-testing/tests/requirements.txt
+
+          kubectl port-forward svc/mme-modelmgmtservice -n traininghost  32007:8082 & PF_PID=$!
+          sleep 1
+          python3 -m pytest component-testing/tests/ --maxfail=1 --disable-warnings -q --html=pytest_report.html
+
+          # Stop port-forwarding
+          kill $PF_PID
+      
+      - name: Upload Test Report
+        uses: actions/upload-artifact@v4
+        with:
+          name: pytest-report
+          path: pytest_report.html
 
   vote:
     if: ${{ always() }}
index 06625aa..f107333 100644 (file)
@@ -15,5 +15,6 @@
 #   limitations under the License.
 #
 # ==================================================================================
+requests
 pytest
 pytest-html
\ No newline at end of file