Skip to content

Commit

Permalink
code-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
atrabattoni committed Aug 6, 2024
1 parent 6d2feea commit f92ec6e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/code-coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Code Coverage

on: [push]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install '.[tests]'
- name: Run tests with coverage
run: coverage run -m pytest

- name: Generate coverage report
run: coverage xml

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

0 comments on commit f92ec6e

Please sign in to comment.