Skip to content

Commit f44d3c3

Browse files
Update codecov to v5 with new token (#5280)
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent ebb88d2 commit f44d3c3

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/groovy-tests.yml

-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,3 @@ jobs:
1515
- name: Run Tests
1616
run: |
1717
./gradlew test --info
18-
- name: Upload Coverage Report
19-
uses: codecov/codecov-action@v2
20-
with:
21-
files: ./build/reports/jacoco/test/jacocoTestReport.xml

.github/workflows/python-tests.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [push, pull_request]
55

66
jobs:
77
Get-CI-Image-Tag:
8-
uses: ./.github/workflows/get-ci-image-tag.yml
8+
uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main
99
with:
1010
product: opensearch
1111

@@ -76,7 +76,21 @@ jobs:
7676
- name: Run Tests with Coverage
7777
run: |
7878
pipenv run coverage run -m pytest --cov=./src --cov-report=xml
79+
- uses: actions/upload-artifact@v4
80+
with:
81+
name: coverage-report-${{ matrix.os }}
82+
path: ./coverage.xml
83+
84+
python-tests-codecov:
85+
needs: python-tests-linux
86+
runs-on: ubuntu-24.04
87+
steps:
88+
- uses: actions/download-artifact@v4
89+
with:
90+
name: coverage-report-ubuntu-24.04
91+
path: ./
7992
- name: Upload Coverage Report
80-
uses: codecov/codecov-action@v2
93+
uses: codecov/codecov-action@v5
8194
with:
95+
token: ${{ secrets.CODECOV_TOKEN }}
8296
files: ./coverage.xml

0 commit comments

Comments
 (0)