Skip to content

Commit 64a640b

Browse files
committed
fix(coverage): dynamic rustflags for tarpaulin
1 parent d1ef2eb commit 64a640b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Run tests and generate coverage report
4848
run: |
49-
export RUSTFLAGS=$(python3-config --ldflags)
49+
export RUSTFLAGS="-L $(python3-config --libdir) -lpython$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")'))"
5050
cargo tarpaulin --all-features --out Xml --output-dir ./coverage
5151
5252
- name: Upload coverage to Codecov

0 commit comments

Comments
 (0)