mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 02:24:23 -05:00
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 commit863989f538. * just `*` * Revert "Revert "debug"" This reverts commit0855bc795c. * leading `*/`? * Revert "leading `*/`?" This reverts commit5067869b59. * Revert "Revert "leading `*/`?"" This reverts commit5f09e6211e. * Revert "Revert "Revert "debug""" This reverts commita788ec1691.
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
[tool.diff_cover]
|
||||||
|
exclude = [
|
||||||
|
"*/chia/_tests/*/config.py",
|
||||||
|
]
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user