From b237843cd24cf775d74abdba44a3624790e487bd Mon Sep 17 00:00:00 2001 From: Guruprasad Kamath Date: Sat, 29 Nov 2025 05:00:14 +0100 Subject: [PATCH] fix(ci): run coverage from py3 --- .github/workflows/test.yaml | 12 ++++++------ tox.ini | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 472c6e6eec..a11f9ccd55 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -46,6 +46,12 @@ jobs: - uses: ./.github/actions/setup-env - name: Run py3 tests run: tox -e py3 + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 + with: + files: .tox/coverage.xml + flags: unittests + token: ${{ secrets.CODECOV_TOKEN }} pypy3: runs-on: [self-hosted-ghr, size-xl-x64] @@ -117,12 +123,6 @@ jobs: cat $FILE_LIST - name: Run json infra tests run: tox -e json_infra -- --file-list="${{ steps.get-changed-files.outputs.file_list }}" - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 - with: - files: .tox/coverage.xml - flags: unittests - token: ${{ secrets.CODECOV_TOKEN }} optimized: runs-on: [self-hosted-ghr, size-xl-x64] diff --git a/tox.ini b/tox.ini index e3698c9442..0983dd466d 100644 --- a/tox.ini +++ b/tox.ini @@ -65,12 +65,6 @@ commands = pytest \ -m "not slow" \ -n auto --maxprocesses 6 --dist=loadfile \ - --cov-config=pyproject.toml \ - --cov=ethereum \ - --cov-report=term \ - --cov-report "xml:{toxworkdir}/coverage.xml" \ - --no-cov-on-fail \ - --cov-branch \ --basetemp="{temp_dir}/pytest" \ {posargs} \ tests/json_infra @@ -81,6 +75,12 @@ commands = fill \ -m "not slow and not zkevm and not benchmark" \ -n auto --maxprocesses 10 --dist=loadgroup \ + --cov-config=pyproject.toml \ + --cov=ethereum \ + --cov-report=term \ + --cov-report "xml:{toxworkdir}/coverage.xml" \ + --no-cov-on-fail \ + --cov-branch \ --basetemp="{temp_dir}/pytest" \ --log-to "{toxworkdir}/logs" \ --clean \