From 3cf757bf17d82fa93125327c6ee23218132225e3 Mon Sep 17 00:00:00 2001 From: Feeph Aifeimei <55798703+feeph@users.noreply.github.com> Date: Tue, 13 Aug 2024 19:33:45 +0000 Subject: [PATCH 1/2] ci: simplify GitHub Action 'coveralls.yaml' --- .github/workflows/coveralls.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/coveralls.yaml b/.github/workflows/coveralls.yaml index beb8522..c693852 100644 --- a/.github/workflows/coveralls.yaml +++ b/.github/workflows/coveralls.yaml @@ -27,12 +27,7 @@ jobs: 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 From d52d4f21e0a61e5b23c8bc7af01afac6efb54b90 Mon Sep 17 00:00:00 2001 From: Feeph Aifeimei <55798703+feeph@users.noreply.github.com> Date: Tue, 13 Aug 2024 19:37:06 +0000 Subject: [PATCH 2/2] ci: simplify GitHub Action 'coveralls.yaml' (2) --- .github/workflows/coveralls.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/coveralls.yaml b/.github/workflows/coveralls.yaml index c693852..c50437e 100644 --- a/.github/workflows/coveralls.yaml +++ b/.github/workflows/coveralls.yaml @@ -29,5 +29,9 @@ jobs: - name: generate coverage report run: | pdm run coverage run --source=feeph.i2c -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