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 19f2e86
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ 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

- run: cargo test -F python
- run: |
source <(cargo llvm-cov show-env --export-prefix)
cargo test -F python
env:
RUST_BACKTRACE: 1
- run: cargo llvm-cov report --codecov --output-path=coverage.json
- run: |
source <(cargo llvm-cov show-env --export-prefix)
cargo llvm-cov report --codecov --output-path=coverage.json
- run: cargo test --doc

Expand Down Expand Up @@ -91,22 +92,29 @@ 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

- run: make python-install
- run: |
source <(cargo llvm-cov show-env --export-prefix)
make python-install
- run: pip install -e crates/jiter-python
- run: |
source <(cargo llvm-cov show-env --export-prefix)
pip install -e crates/jiter-python
- run: pytest crates/jiter-python/tests
- run: |
source <(cargo llvm-cov show-env --export-prefix)
pytest crates/jiter-python/tests
env:
RUST_BACKTRACE: 1
- run: python crates/jiter-python/bench.py
- run: |
source <(cargo llvm-cov show-env --export-prefix)
python crates/jiter-python/bench.py
env:
FAST: 1
- run: cargo llvm-cov report --codecov --output-path=coverage.json
- run: |
source <(cargo llvm-cov show-env --export-prefix)
cargo llvm-cov report --codecov --output-path=coverage.json
- uses: codecov/codecov-action@v4
with:
Expand Down

0 comments on commit 19f2e86

Please sign in to comment.