Skip to content

Commit

Permalink
Update codecov to v5 with new token (#5280)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon authored Jan 31, 2025
1 parent ebb88d2 commit f44d3c3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/groovy-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@ jobs:
- name: Run Tests
run: |
./gradlew test --info
- name: Upload Coverage Report
uses: codecov/codecov-action@v2
with:
files: ./build/reports/jacoco/test/jacocoTestReport.xml
18 changes: 16 additions & 2 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]

jobs:
Get-CI-Image-Tag:
uses: ./.github/workflows/get-ci-image-tag.yml
uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main
with:
product: opensearch

Expand Down Expand Up @@ -76,7 +76,21 @@ jobs:
- name: Run Tests with Coverage
run: |
pipenv run coverage run -m pytest --cov=./src --cov-report=xml
- uses: actions/upload-artifact@v4
with:
name: coverage-report-${{ matrix.os }}
path: ./coverage.xml

python-tests-codecov:
needs: python-tests-linux
runs-on: ubuntu-24.04
steps:
- uses: actions/download-artifact@v4
with:
name: coverage-report-ubuntu-24.04
path: ./
- name: Upload Coverage Report
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml

0 comments on commit f44d3c3

Please sign in to comment.