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 cb683c3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,30 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

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

steps:
- 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 cb683c3

Please sign in to comment.