Skip to content

Commit 4a5af9e

Browse files
author
Marat Akhmetov
committed
[DOP-23126] added constant var for min coverage
1 parent fe3ca59 commit 4a5af9e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ concurrency:
1414

1515
env:
1616
DEFAULT_PYTHON: '3.13'
17+
MIN_COVERAGE: 92
1718

1819
permissions:
1920
contents: write
@@ -152,9 +153,9 @@ jobs:
152153
color: ${{ steps.coverage.outputs.color }}
153154

154155
- name: Fail if coverage too low
155-
if: ${{ steps.coverage.outputs.coverage < 92 }}
156+
if: ${{ steps.coverage.outputs.coverage < env.MIN_COVERAGE }}
156157
run: |
157-
echo "Coverage is below 92%!"
158+
echo "Coverage is below ${{ env.MIN_COVERAGE }}%!"
158159
exit 1
159160
160161
- name: All done

0 commit comments

Comments
 (0)