diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4ffae839..9e9a34dd 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -34,8 +34,9 @@ jobs: tox -r -e cov - name: Codecov uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: - token: ${{ secrets.CODECOV_TOKEN }} flags: unittests file: ./coverage.xml name: blinkpy diff --git a/codecov.yml b/codecov.yml index 42f2739b..bc87e9c5 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,15 +1,18 @@ codecov: branch: dev + bot: codecov-io + max_report_age: 24 + disable_default_path_fixes: no + require_ci_to_pass: yes + notify: + wait_for_ci: yes coverage: + precision: 1 + round: down + range: 85..100 status: project: default: - target: 80% - threshold: 2% - patch: - default: - target: 60% + target: auto threshold: 5% - -comment: true -require_ci_to_pass: yes +