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>
- 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() }}
# limitations under the License.
#
# ==================================================================================
+requests
pytest
pytest-html
\ No newline at end of file