From 51d8073bfa32fe812e5f93a5fb51587df46405e9 Mon Sep 17 00:00:00 2001 From: Dave Brondsema Date: Wed, 15 Mar 2023 16:05:51 -0400 Subject: [PATCH] use codecov token to avoid API errors Recommended at https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954 --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a77e815..4339dca 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,9 +54,10 @@ jobs: run: tox --skip-missing-interpreters false -e py`echo ${{ matrix.python-version }} | sed s/\\\.// | sed s/pypy/py/ | sed s/-dev//` - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: fail_ci_if_error: true flags: tests-${{ matrix.python-version }} name: codecov-umbrella verbose: true + token: ${{ secrets.CODECOV_TOKEN }}