From 87d3a6dc52b97efde9d167c8f0ff031ac744fa08 Mon Sep 17 00:00:00 2001 From: gnikit Date: Sun, 17 Nov 2024 12:11:06 +0000 Subject: [PATCH] ci: bump Codecov action to v5 Had to manually set the plugins to `gcov` to prevent the Codecov action from running pytest-cov, which genetates empty coverage. Reports must be generated a-priori with coverage since tkinter runs on a separate process. --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d934101..09fcc48 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,17 +21,17 @@ jobs: - name: Setup run: pip install .[dev] - - name: Lint - run: pre-commit run -a - - name: Unittests uses: coactions/setup-xvfb@v1 with: - run: coverage run -m pytest + run: | + coverage run -m pytest - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} - file: ./coverage.xml + files: ./coverage.xml + plugins: "gcov" # HACK: prevent codecov from running pytest-cov + verbose: true fail_ci_if_error: true