-
-
Notifications
You must be signed in to change notification settings - Fork 120
47 lines (39 loc) · 1.12 KB
/
coverage.yml
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
47
name: Coverage
on:
push:
branches:
- main
jobs:
generate-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up Python 3.11
uses: actions/[email protected]
with:
python-version: "3.11"
- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.6.1
- name: Set Poetry config
run: |
poetry config virtualenvs.path ~/.virtualenvs3.11
- name: Install dependencies
run: poetry install -E minify
- name: Generate coverage badge
run: |
chmod +x generate_badge.sh
./generate_badge.sh
- name: Commit and push coverage badge
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add badges/coverage.svg
git commit -m "Update coverage badge"
git push