Skip to content

Commit

Permalink
Update pytest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
manvith1604 authored Jun 2, 2024
1 parent 45a92cc commit 28b0bf7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Pytest

on:
push:
branches:
Expand All @@ -14,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -25,12 +26,14 @@ jobs:
run: pip install -r requirements.txt

- name: Run tests and generate XML report
env:
PYTHONPATH: ${{ github.workspace }}/src
run: pytest --junitxml=pytest-report.xml
continue-on-error: false

- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pytest-results
path: pytest-report.xml
Expand All @@ -41,4 +44,4 @@ jobs:

- name: Notify on failure
if: failure()
run: echo "Tests failed"
run: echo "Tests failed"

0 comments on commit 28b0bf7

Please sign in to comment.