Skip to content

Commit

Permalink
#4 Adds codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
bytebutcher authored Jul 3, 2023
1 parent 02055d6 commit 6ad45df
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
name: Workflow for Codecov example-python
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: pip install -r .
- name: Run tests and collect coverage
run: pytest --cov .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

0 comments on commit 6ad45df

Please sign in to comment.