Skip to content

Commit

Permalink
[SPARK-50633][FOLLOWUP] Set CODECOV_TOKEN with environment variables
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?
The pr aims to set `CODECOV_TOKEN` with `environment variables` for `codecov/codecov-action`.

### Why are the changes needed?
Based on the suggestions of the `codecov/codecov-action` community, we will try setting it up in a different way to see if `codecov/codecov-action` can succeed.
codecov/codecov-action#1738 (comment)
<img width="947" alt="image" src="https://github.com/user-attachments/assets/1b97875e-c5da-449e-bf01-fc7b73287f45" />

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Manually check.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #49477 from panbingkun/SPARK-50633_FOLLOWUP_1.

Authored-by: panbingkun <[email protected]>
Signed-off-by: panbingkun <[email protected]>
  • Loading branch information
panbingkun committed Jan 14, 2025
1 parent e62697f commit 0e51dba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -622,9 +622,10 @@ jobs:
- name: Upload coverage to Codecov
if: fromJSON(inputs.envs).PYSPARK_CODECOV == 'true'
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./python/coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
name: PySpark
verbose: true
Expand Down

0 comments on commit 0e51dba

Please sign in to comment.