Scrapy, a fast high-level web crawling & scraping framework for Python.
codecov config improvements. (#8387)
Andrey Rakhmatullinb8b81a262d02
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex fbc56d7d5..c6df08279 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -193,14 +193,17 @@ jobs:run: uvx --with tox-uv tox- name: Upload coverage report- if: ${{ matrix.coverage }}+ if: ${{ matrix.coverage && !cancelled() }}uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1+ with:+ flags: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.env.TOXENV }}- name: Upload test resultsif: ${{ !cancelled() }}uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1with:report_type: test_results+ flags: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.env.TOXENV }}windows:needs: [pre-commit, checks]diff --git a/codecov.yml b/codecov.ymlindex d8aa6b984..e460f5aaa 100644--- a/codecov.yml+++ b/codecov.yml@@ -1,6 +1,17 @@+codecov:+ notify:+ # The number of CI jobs with "coverage: true" in+ # .github/workflows/ci.yml. Until all of them have uploaded their report,+ # the coverage of a commit is incomplete.+ after_n_builds: 12+comment:layout: "header, diff, tree"+ after_n_builds: 12coverage:status:- project: false+ patch: false+ project:+ default:+ target: 100%