Skip to content

Commit

Permalink
exclude config.py from diff-cover as well (#17873)
Browse files Browse the repository at this point in the history
* debug

* exclude `config.py` from diff-cover as well

* actually pass the config path...

* Revert "debug"

This reverts commit 863989f.

* just `*`

* Revert "Revert "debug""

This reverts commit 0855bc7.

* leading `*/`?

* Revert "leading `*/`?"

This reverts commit 5067869.

* Revert "Revert "leading `*/`?""

This reverts commit 5f09e62.

* Revert "Revert "Revert "debug"""

This reverts commit a788ec1.
  • Loading branch information
altendky authored Apr 16, 2024
1 parent d704466 commit 89f1a04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .diffcover.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[tool.diff_cover]
exclude = [
"*/chia/_tests/*/config.py",
]
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ jobs:
env:
compare-branch: ${{ github.base_ref == '' && github.event.before || format('origin/{0}', github.base_ref) }}
run: |
diff-cover --compare-branch=${{ env.compare-branch }} --fail-under=100 --html-report=coverage-reports/diff-cover.html --markdown-report=coverage-reports/diff-cover.md coverage-reports/coverage.xml | tee coverage-reports/diff-cover-stdout
diff-cover --config-file=.diffcover.toml --compare-branch=${{ env.compare-branch }} --fail-under=100 --html-report=coverage-reports/diff-cover.html --markdown-report=coverage-reports/diff-cover.md coverage-reports/coverage.xml | tee coverage-reports/diff-cover-stdout
COV_STATUS="${PIPESTATUS[0]}"
echo "COV_STATUS=$COV_STATUS" >> "$GITHUB_ENV"
if [[ $COV_STATUS != '0' && "$GITHUB_BASE_REF" != '' ]]; then
Expand Down

0 comments on commit 89f1a04

Please sign in to comment.