Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jmateusribeiro authored Mar 30, 2024
1 parent 03d7ee3 commit 4a67c33
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,17 @@ jobs:

- name: Run Tests with Coverage
run: |
coverage run -m pytest --cov=my_module --cov-report=html tests
coverage run -m pytest --html=report.html
- name: Upload HTML Coverage Report
uses: actions/upload-artifact@v2
- name: Run Tests and Collect Coverage
run: |
COVERAGE_FILE=coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
CONTEXT=${{ runner.os }}-py${{ matrix.python-version }}
coverage run -m pytest --html=report.html
- name: Store Coverage Files
if: always()
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: ./htmlcov
name: python-coverage-${{ matrix.python-version }}
path: coverage

0 comments on commit 4a67c33

Please sign in to comment.