Skip to content

Commit

Permalink
Single upload step
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Apr 19, 2024
1 parent dff3c5c commit e6a173c
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,13 @@ jobs:
run: cargo test --all-features -p polars --test it

- name: Report coverage
run: cargo llvm-cov report --lcov --output-path coverage.lcov
run: cargo llvm-cov report --lcov --output-path coverage-rust.lcov

- name: Upload coverage information
uses: codecov/codecov-action@v4
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
files: coverage.lcov
name: macos
token: ${{ secrets.CODECOV_TOKEN }}
name: coverage-rust
path: coverage-rust.lcov

coverage-python:
runs-on: macos-latest
Expand Down Expand Up @@ -125,11 +124,28 @@ jobs:
continue-on-error: true

- name: Report Rust coverage
run: cargo llvm-cov report --lcov --output-path coverage.lcov
run: cargo llvm-cov report --lcov --output-path coverage-python.lcov

- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
name: coverage-python
path: |
coverage-python.lcov
py-polars/main.xml
py-polars/async.xml
upload-coverage:
needs: [coverage-rust, coverage-python]
runs-on: ubuntu-latest
steps:
- name: Download coverage files
uses: actions/download-artifact@v4
with:
merge-multiple: true

- name: Upload coverage information
uses: codecov/codecov-action@v4
with:
files: coverage.lcov,py-polars/main.xml,py-polars/async.xml
name: macos
files: coverage-rust.lcov,coverage-python.lcov,main.xml,async.xml
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit e6a173c

Please sign in to comment.