Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/coveralls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
#
# https://coveralls.io/
#

name: update coverage report (coveralls)

on:
pull_request:
push:
branches:
- main
- 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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pdm run coverage run --source=feeph.i2c -m pytest tests/
pdm run coveralls
mkdir -p coverage
pdm run coverage-lcov --output_file_path=coverage/lcov.info
- name: coveralls action
uses: coverallsapp/github-action@v2
10 changes: 0 additions & 10 deletions .github/workflows/validate-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,6 @@ jobs:
if [[ -n $CONTRIB_FILES ]] ; then
pdm run mypy $CONTRIB_FILES
fi
- name: generate coverage report
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pdm run coverage run --source=feeph.i2c -m pytest tests/
pdm run coveralls
mkdir -p coverage
pdm run coverage-lcov --output_file_path=coverage/lcov.info
- name: coveralls action
uses: coverallsapp/github-action@v2
test:
name: perform unit tests
# wait on linting results; makes no sense to test if the code is broken
Expand Down