Skip to content

Commit

Permalink
Run coverage in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SRv6d committed Sep 14, 2024
1 parent cadcd0a commit 4b8ab35
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,14 @@ type-check:
uv run mypy src

# Run tests using pytest
test $FRR_VERSION=FRR_LATEST_MAJOR_VERSION:
uv run pytest tests
test $FRR_VERSION=FRR_LATEST_MAJOR_VERSION $COV=env("CI", "false"):
#!/usr/bin/env bash
set -euxo pipefail
args=()
( $COV == "true" ) && args+=( "--cov" )
uv run pytest tests ${args[@]}

if [ -z ${CI} ]; then
uv run coverge xml

Check warning on line 28 in justfile

View workflow job for this annotation

GitHub Actions / spellcheck

"coverge" should be "coverage" or "converge".
fi

0 comments on commit 4b8ab35

Please sign in to comment.