From a7147b354e613b9fa57b6d39f0b21b9ffb2c62d0 Mon Sep 17 00:00:00 2001 From: Giuseppe Carboni Date: Wed, 10 Apr 2024 16:10:12 +0200 Subject: [PATCH] Updated CodeCov uploading mechanism --- .github/workflows/ci_tests.yml | 7 +++++-- .github/workflows/scheduled_py3_tests.yml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 9773a05..f2889f4 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -29,8 +29,11 @@ jobs: coverage run -p -m unittest discover -b tests coverage combine coverage xml - - name: Upload test coverage to codecov - uses: codecov/codecov-action@v4 + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: discos/simulators - name: Run the Python linter run: | prospector diff --git a/.github/workflows/scheduled_py3_tests.yml b/.github/workflows/scheduled_py3_tests.yml index a403af3..013a62c 100644 --- a/.github/workflows/scheduled_py3_tests.yml +++ b/.github/workflows/scheduled_py3_tests.yml @@ -28,8 +28,11 @@ jobs: coverage run -p -m unittest discover -b tests coverage combine coverage xml - - name: Upload test coverage to codecov - uses: codecov/codecov-action@v4 + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: discos/simulators - name: Run the Python linter run: | prospector