Skip to content

Commit 978f061

Browse files
committed
Fix CI test count check to correctly parse pytest collection output
1 parent b361eb0 commit 978f061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test.yml

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

3232
- name: Check test count
3333
run: |
34-
TEST_COUNT=$(uv run pytest tests/ --collect-only -q | grep -c "test_")
34+
TEST_COUNT=$(uv run pytest tests/ --collect-only -q | grep "<Function test_" | wc -l | tr -d ' ')
3535
echo "Found $TEST_COUNT tests"
3636
if [ "$TEST_COUNT" -ne 7 ]; then
3737
echo "Expected 7 tests, found $TEST_COUNT"

0 commit comments

Comments
 (0)