Skip to content

Commit

Permalink
coverage comment
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed Sep 21, 2024
1 parent c29cf92 commit 8833fac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ jobs:

- name: Run tests
env:
# Make sure to add `passenv=COVERAGE_FILE` to tox.ini
COVERAGE_FILE: ".coverage.${{ matrix.os }}.${{ matrix.python-version }}"
run: >-
uvx --with=tox-uv
Expand Down Expand Up @@ -159,17 +160,12 @@ jobs:
pattern: coverage-*
merge-multiple: true

- name: List files
run: ls -al

- name: Combine coverage
run: coverage combine coverage-*

- name: Coverage comment
id: coverage_comment
uses: py-cov-action/python-coverage-comment-action@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_COVERAGE_FILES: true

- name: Store Pull Request comment to be posted
uses: actions/upload-artifact@v4
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ env_list =
changelog,

[testenv:.pkg]
pass_env = SETUPTOOLS_SCM_PRETEND_VERSION
pass_env =
SETUPTOOLS_SCM_PRETEND_VERSION
COVERAGE_FILE


[testenv]
Expand Down

0 comments on commit 8833fac

Please sign in to comment.