From e41814ff509d9aa57b8ae014d3f7b47ae287d3a9 Mon Sep 17 00:00:00 2001 From: Outvi V Date: Sun, 4 Aug 2024 00:30:37 +0800 Subject: [PATCH] ci: more fixes for Codecov --- .github/workflows/test.yml | 3 ++- pytest.ini | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ef74953..78446b4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,6 +11,7 @@ on: permissions: contents: read + id-token: write jobs: build: @@ -47,4 +48,4 @@ jobs: - name: Upload coverage reports to Codecov uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 with: - token: ${{ secrets.CODECOV_TOKEN }} + use_oidc: true diff --git a/pytest.ini b/pytest.ini index 63b7d83..b03f557 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,4 +1,4 @@ [pytest] python_files = test_*.py -addopts =-slv --tb=short --cov --cov-report term-missing +addopts =-slv --tb=short --cov=./ --cov-report=xml norecursedirs = .git __pycache__ .venv \ No newline at end of file