Skip to content

Commit

Permalink
ci: Send coverage report to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Oct 31, 2024
1 parent 73ef789 commit a9bb5bd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,29 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

coverage:
name: Code coverage
runs-on: ubuntu-latest

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tests and collect coverage
run: |
tox -- coverage run test.py && coverage xml
- name: Upload coverage to Codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
uses: codecov/codecov-action@v4

tests:
name: Unit Tests
runs-on: ${{ matrix.platform }}
Expand Down

0 comments on commit a9bb5bd

Please sign in to comment.