-
Notifications
You must be signed in to change notification settings - Fork 531
40 lines (38 loc) · 1011 Bytes
/
coverage.yaml
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
name: coverage
on:
push:
branches:
- main
- v14
pull_request:
branches:
- main
- v14
jobs:
coverage:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: run unittests
run: |
pip install tox
tox -e py
- name: (coveralls.io) Report code coverage
uses: AndreMiras/coveralls-python-action@develop
with:
github-token: "SmlfzlVJy4ow55rduU7IU5GmmFCfAdGeq"
- if: github.event_name == 'push'
name: (codacy) Create coverage xml report
run: |
pip install coverage
coverage xml
- if: github.event_name == 'push'
name: (codacy) Report code coverage
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: "coverage.xml"