Skip to content

Add test report generation and upload step #9

Add test report generation and upload step

Add test report generation and upload step #9

Workflow file for this run

name: CI Pipeline for AI Model Testing
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Add project root to PYTHONPATH
run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)" >> $GITHUB_ENV
- name: Run PyTest and generate report
run: pytest --junitxml=report.xml
- name: Upload test report
uses: actions/upload-artifact@v3
with:
name: pytest-report
path: report.xml