From e9b56db1521a59629e200a7d6fad1cb6fee97aa5 Mon Sep 17 00:00:00 2001 From: Chiara Rasi Date: Tue, 23 Apr 2024 15:54:23 +0200 Subject: [PATCH] Fix GitHub action to use Codecov token --- .github/workflows/test_n_coverage.yml | 3 ++- CHANGELOG.md | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_n_coverage.yml b/.github/workflows/test_n_coverage.yml index d4e38d3..e8152ae 100644 --- a/.github/workflows/test_n_coverage.yml +++ b/.github/workflows/test_n_coverage.yml @@ -37,10 +37,11 @@ jobs: run: poetry run pytest --cov=./ --cov-report=xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: flags: unittests files: ./coverage.xml name: codecov-umbrella + token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true verbose: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 669ac27..5dc7f7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [unreleased] +### Fixed +- Upload to Codecov step in `tests_n_coverage.yml` action + ## [2.5.1] ### Fixed - Avoid "/bin/sh: 1: gunicorn: not found" error by using poetry <1.8 in Dockerfile