From fefb9bdcf540b0833d72bd4ee4341c69df18b4c7 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Mon, 22 Apr 2024 23:28:54 +0200 Subject: [PATCH] ci: fix missin Codecov token --- .github/workflows/lint-and-tests.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint-and-tests.yml b/.github/workflows/lint-and-tests.yml index 0e898f4..46ff073 100644 --- a/.github/workflows/lint-and-tests.yml +++ b/.github/workflows/lint-and-tests.yml @@ -5,23 +5,28 @@ name: "🐍 Lint and Test" # events but only for the master branch on: pull_request: - branches: [main] + branches: + - main paths-ignore: - "docs/**" push: - branches: [main] + branches: + - main paths-ignore: - "docs/**" -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" lintest: runs-on: ubuntu-latest strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -57,3 +62,10 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v4.3.0 + with: + env_vars: PYTHON + flags: unittests + name: Code Coverage for unittests on python-${{ matrix.python-version }}] + env: + PYTHON: ${{ matrix.python-version }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}