exclude config.py from diff-cover as well (#17873)

* debug

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

* actually pass the config path...

* Revert "debug"

This reverts commit 863989f538.

* just `*`

* Revert "Revert "debug""

This reverts commit 0855bc795c.

* leading `*/`?

* Revert "leading `*/`?"

This reverts commit 5067869b59.

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

This reverts commit 5f09e6211e.

* Revert "Revert "Revert "debug"""

This reverts commit a788ec1691.
This commit is contained in:
Kyle Altendorf
2024-04-16 13:31:20 -07:00
committed by GitHub
parent d704466f51
commit 89f1a0468a
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
[tool.diff_cover]
exclude = [
"*/chia/_tests/*/config.py",
]
+1 -1
View File
@@ -226,7 +226,7 @@ jobs:
env: env:
compare-branch: ${{ github.base_ref == '' && github.event.before || format('origin/{0}', github.base_ref) }} compare-branch: ${{ github.base_ref == '' && github.event.before || format('origin/{0}', github.base_ref) }}
run: | 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]}" COV_STATUS="${PIPESTATUS[0]}"
echo "COV_STATUS=$COV_STATUS" >> "$GITHUB_ENV" echo "COV_STATUS=$COV_STATUS" >> "$GITHUB_ENV"
if [[ $COV_STATUS != '0' && "$GITHUB_BASE_REF" != '' ]]; then if [[ $COV_STATUS != '0' && "$GITHUB_BASE_REF" != '' ]]; then