From 54d6567a9040e17782b51f64be2bbcbd1dd66e2b Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Wed, 5 Feb 2025 17:09:32 +0500 Subject: [PATCH 1/2] Fix coverage upload. --- .github/workflows/tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 442953e..f1596c9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,4 +35,7 @@ jobs: SPLASH_URL=http://127.0.0.1:8050 tox - name: Upload coverage report - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + From 7af43d113929bbe480fbb0374559fca471c73a13 Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Wed, 5 Feb 2025 17:30:25 +0500 Subject: [PATCH 2/2] Generate the XML coverage report --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index c624590..095a42e 100644 --- a/tox.ini +++ b/tox.ini @@ -23,4 +23,4 @@ deps = scrapy commands = pip install -e . - py.test --doctest-modules --doctest-glob '*.py,*.rst' --cov=scrapy_splash {posargs:README.rst scrapy_splash tests} + py.test --doctest-modules --doctest-glob '*.py,*.rst' --cov=scrapy_splash --cov-report=xml {posargs:README.rst scrapy_splash tests}