From 77a7e294a06fe3b1c6a500eef62b014c6bb65c1a Mon Sep 17 00:00:00 2001 From: Mateo Date: Tue, 21 May 2024 09:55:47 +0200 Subject: [PATCH] Fixing codecov upload (#197) * fix upload * use token * update version --- .github/workflows/tests.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 506adf8a..4d5af5ae 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: with: persist-credentials: false - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: ${{ matrix.python }} architecture: x64 @@ -52,9 +52,13 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/download-artifact@v2 + with: + name: coverage-main + path: ./coverage.xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: + token: ${{ secrets.CODECOV_TOKEN }} # Use the Codecov token from secrets flags: unittests fail_ci_if_error: true @@ -82,10 +86,8 @@ jobs: run: | python -m pip install --upgrade pip pip install -e ".[docs]" --upgrade - - name: Build documentation run: sphinx-build docs/source docs/build -a - - name: Documentation sanity check run: test -e docs/build/index.html || exit