-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (41 loc) · 1.11 KB
/
Copy pathcoverage.yaml
File metadata and controls
46 lines (41 loc) · 1.11 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
37
38
39
40
41
42
43
44
45
46
name: Coverage
on:
push:
branches:
- main
- dev
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
env:
PYTHON_VERSION: '3.10'
jobs:
update-readme:
name: Update README coverage
runs-on: ubuntu-latest
timeout-minutes: 15
if: github.actor != 'github-actions[bot]'
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: ./.github/actions/setup-python-uv
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Run coverage
run: uv run --locked --extra dev tox run -e coverage
- name: Update README coverage
run: uv run --locked --extra dev python scripts/update_coverage_readme.py
- name: Commit README coverage
run: |
if git diff --quiet -- README.md; then
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "docs: update coverage result"
git push