From e156ba74f45e9e55518971ae56888a826040f2c7 Mon Sep 17 00:00:00 2001 From: J-E Castagnede Date: Fri, 31 May 2024 16:07:26 +0200 Subject: [PATCH 1/3] add job to upload coverage --- .github/workflows/test.yml | 40 +++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cdc0fd08c8..83ebd0f2a1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -145,13 +145,39 @@ jobs: ./venv/bin/coverage combine ./venv/bin/coverage xml -o coverage.xml - # codecov-action version 3.1.4 is the last version supported by bionic (3.1.5 requires node 20) - - uses: codecov/codecov-action@v3.1.4 - with: - files: ./coverage.xml - env_vars: OS,ENV - token: ${{ secrets.CODECOV_TOKEN }} # not usually required for public repos - fail_ci_if_error: true # optional (default = false) + - name: Save coverage + uses: actions/upload-artifact@v2 + with: + name: coverage_${{ matrix.os }}_${{ matrix.tests-env }} + path: coverage.xml + + upload_coverage: + name: Upload coverage to codecov + runs-on: ubuntu-latest + needs: [ test ] + strategy: + matrix: + os: ['bionic-3.8', 'focal-3.8'] + python-version: ['3.8'] + tests-env: ['tests', 'tests_nds'] + + env: + ENV: ${{ matrix.tests-env }} + OS: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v2 + with: + name: coverage_${{ matrix.os }}_${{ matrix.tests-env }} + path: coverage.xml + + - uses: codecov/codecov-action@v4 + with: + files: ./coverage.xml + env_vars: OS,ENV + token: ${{ secrets.CODECOV_TOKEN }} # not usually required for public repos + fail_ci_if_error: true # optional (default = false) build_docker_image: name: Build docker image From 704df8099dd2bb7885ab70ac0a858f0ecdc085b7 Mon Sep 17 00:00:00 2001 From: J-E Castagnede Date: Fri, 31 May 2024 16:11:34 +0200 Subject: [PATCH 2/3] add job to upload coverage --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 83ebd0f2a1..7997054fbd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -147,9 +147,9 @@ jobs: - name: Save coverage uses: actions/upload-artifact@v2 - with: - name: coverage_${{ matrix.os }}_${{ matrix.tests-env }} - path: coverage.xml + with: + name: coverage_${{ matrix.os }}_${{ matrix.tests-env }} + path: coverage.xml upload_coverage: name: Upload coverage to codecov From 0eb99a4366e8334ba4d07259a985005e2c621454 Mon Sep 17 00:00:00 2001 From: J-E Castagnede Date: Fri, 31 May 2024 16:29:03 +0200 Subject: [PATCH 3/3] add job to upload coverage --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7997054fbd..46ba6b366b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -170,7 +170,7 @@ jobs: - uses: actions/download-artifact@v2 with: name: coverage_${{ matrix.os }}_${{ matrix.tests-env }} - path: coverage.xml + path: . - uses: codecov/codecov-action@v4 with: