-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 958 Bytes
/
coveralls.yaml
File metadata and controls
36 lines (33 loc) · 958 Bytes
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
---
#
# https://coveralls.io/
#
name: update coverage report (coveralls)
on:
pull_request:
push:
branches:
- master
jobs:
coverage:
name: generate coverage report
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: configure Python (using PDM)
uses: pdm-project/setup-pdm@v4
with:
python-version-file: pyproject.toml
- name: install dependencies
run: |
pdm install
- name: generate coverage report
run: |
pdm run coverage run --source=feeph.ads1xxx -m pytest tests/
# coveralls recognizes the presence of .coverage but claims there
# is nothing to report; creating a report in lcov format fixes that
mkdir -p coverage
pdm run coverage-lcov --output_file_path=coverage/lcov.info
- name: coveralls action
uses: coverallsapp/github-action@v2