Skip to content

Commit

Permalink
added coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashS0510 committed Jan 6, 2025
1 parent 32eace9 commit 220ca10
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Coverage
on: [push, pull_request]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov
pip install -e .
- name: Run tests with coverage
run: |
pytest --cov=tirith tests/
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage.xml

0 comments on commit 220ca10

Please sign in to comment.