-
-
Notifications
You must be signed in to change notification settings - Fork 61
36 lines (36 loc) · 1.05 KB
/
Copy pathcoverage.yml
File metadata and controls
36 lines (36 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Check Coverage
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: "3.11"
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Install prerequisites
run: |
uv sync --all-extras --group dev
sudo ./scripts/install-taskwarrior.sh
task --version
- name: Coverage
run: |
uv run coverage run -m pytest --doctest-modules
uv run coverage report
# Using --service=github + secrets.GITHUB_TOKEN for builds originating from PRs to work
# Not sure if both are required
# https://github.com/TheKevJames/coveralls-python/issues/252
- name: Coveralls
run: uv run coveralls --service=github || uv run coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}