Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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 --fail-under=70


3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ dev = [
"types-pytz (>=2025.2.0.20250326,<2025.3.0.0)",
"pre-commit (>=4.2.0,<4.3.0)",
"types-python-dateutil (>=2.9.0,<2.10.0)",
"wheel (>=0.45.1,<0.46.0)"
"wheel (>=0.45.1,<0.46.0)",
"coverage>=7.13.5"
]
doc = [
"autoapi (>=2.0.1,<2.1.0)",
Expand Down
Loading