Skip to content

Commit

Permalink
try output vars
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed May 28, 2024
1 parent 6bf7d39 commit 4078f13
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,22 @@ jobs:
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: prepare coverage environment
run: cargo llvm-cov show-env >> $GITHUB_ENV
- id: coverage-env
name: prepare coverage environment
run: echo vars=$(cargo llvm-cov show-env --export-prefix) >> $GITHUB_OUTPUT

- run: cargo test -F python
- run: |
source < $(echo $COVERAGE_ENV)
cargo test -F python
env:
RUST_BACKTRACE: 1
COVERAGE_ENV: ${{ steps.coverage-env.outputs.vars }}
- run: cargo llvm-cov report --codecov --output-path=coverage.json
- run: |
source < $(echo $COVERAGE_ENV)
cargo llvm-cov report --codecov --output-path=coverage.json
env:
COVERAGE_ENV: ${{ steps.coverage-env.outputs.vars }}
- run: cargo test --doc

Expand Down

0 comments on commit 4078f13

Please sign in to comment.