Skip to content

Commit

Permalink
added code cov
Browse files Browse the repository at this point in the history
  • Loading branch information
Sri Tikkireddy committed Sep 17, 2024
1 parent 9a88cc8 commit b17590c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/on-push-codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run tests and upload coverage

on:
push

jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4

- name: Install dependencies
run: pip install pytest pytest-cov

- name: Install current library
run: pip install .

- name: Run tests
run: pytest --cov

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit b17590c

Please sign in to comment.