Skip to content
Closed
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -654,12 +654,13 @@ jobs:
name: PySpark
verbose: true
- name: Upload test results to Codecov
if: (!cancelled()) && fromJSON(inputs.envs).PYSPARK_CODECOV_TEST == 'true'
env: ${{ fromJSON(inputs.envs) }}
if: (!cancelled()) && github.repository == 'apache/spark'
uses: codecov/codecov-action@v5
with:
report_type: 'test_results'
files: '**/target/test-reports/*.xml'
flags: unittests
flags: ${{ env.PYTHON_TO_TEST }}-${{ inputs.branch }}
name: PySpark-Test-Results
token: ${{ secrets.codecov_token }}
- name: Upload test results to report
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/build_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,5 @@ jobs:
packages: write
name: Run
uses: ./.github/workflows/build_and_test.yml
with:
envs: >-
{
"PYSPARK_IMAGE_TO_TEST": "python-311",
"PYTHON_TO_TEST": "python3.11",
"PYSPARK_CODECOV_TEST": "true"
}
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
10 changes: 10 additions & 0 deletions .github/workflows/python_hosted_runner_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,16 @@ jobs:
echo "Python Packaging Tests Enabled!"
fi
./dev/run-tests --parallelism 1 --modules "$MODULES_TO_TEST" --python-executables "$PYTHON_TO_TEST"
- name: Upload test results to Codecov
env: ${{ fromJSON(inputs.envs) }}
if: (!cancelled()) && github.repository == 'apache/spark'
uses: codecov/codecov-action@v5
with:
report_type: 'test_results'
files: '**/target/test-reports/*.xml'
flags: ${{ env.PYTHON_TO_TEST }}-${{ inputs.branch }}-${{ inputs.os }}
name: PySpark-Test-Results
token: ${{ secrets.codecov_token }}
- name: Upload test results to report
env: ${{ fromJSON(inputs.envs) }}
if: always()
Expand Down