Skip to content

Commit 4b8ab35

Browse files
committed
Run coverage in CI
1 parent cadcd0a commit 4b8ab35

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

justfile

+11-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,14 @@ type-check:
1616
uv run mypy src
1717

1818
# Run tests using pytest
19-
test $FRR_VERSION=FRR_LATEST_MAJOR_VERSION:
20-
uv run pytest tests
19+
test $FRR_VERSION=FRR_LATEST_MAJOR_VERSION $COV=env("CI", "false"):
20+
#!/usr/bin/env bash
21+
set -euxo pipefail
22+
23+
args=()
24+
( $COV == "true" ) && args+=( "--cov" )
25+
uv run pytest tests ${args[@]}
26+
27+
if [ -z ${CI} ]; then
28+
uv run coverge xml
29+
fi

0 commit comments

Comments
 (0)