-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.61 KB
/
update-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
48
49
50
51
52
53
54
name: Update Coverage Reports
on:
push:
branches:
- main
workflow_dispatch:
concurrency: updates-project
jobs:
coverage:
name: Coverage Reports
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Dependencies and Tools
run: |
python3 -m pip install --upgrade pip
pip install -r requirements.txt --upgrade
pip install --editable .
- name: pytest
run: pytest --cov=src --cov-context=test --cov-report=json:code-coverage.json
- name: commit-json-report
if: ${{ always() && github.ref_name == 'main' }}
uses: EndBug/add-and-commit@v9
with:
add: "code-coverage.json"
pull: "--rebase=true --autostash"
message: ':robot: Update Coverage Report'
- name: artifact-html-report
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: Coverage Report
path: cov-html
- name: Poodle
run: poodle --json mutation-testing-report.json --html html-report
- name: Upload Report HTML
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: Mutation testing report HTML
path: html-report
- name: save-json-report
if: ${{ always() && github.ref_name == 'main' }}
uses: EndBug/add-and-commit@v9
with:
add: "mutation-testing-report.json"
pull: "--rebase=true --autostash"
message: ':robot: Update Coverage Report'