Skip to content

[tool] feat(ci): add codecov (#194) #2

[tool] feat(ci): add codecov (#194)

[tool] feat(ci): add codecov (#194) #2

Workflow file for this run

name: Coverage
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
test-and-print-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
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
python -m pip install -e '.[dev]' coverage
- name: Run tests with coverage
run: python -m coverage run -m unittest
- name: Print coverage summary
run: python -m coverage report -m