Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI to allow using last codecov action on reports generated in bionic #4144

Merged
merged 3 commits into from
May 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 32 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- name: Save coverage
uses: actions/upload-artifact@v2
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: 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: .

- 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
Expand Down
Loading