Skip to content

Commit bf24771

Browse files
committed
Fixed parallel coverage check pytest command
1 parent 1417f6b commit bf24771

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/coverage-check-dynamic-e2e-parallel.yml renamed to .github/workflows/coverage-check-parallel.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,17 @@ jobs:
8181
8282
# Set test filter based on mode
8383
if [ "${{ matrix.mode }}" = "sea" ]; then
84-
TEST_FILTER="-k 'extra_params1 or extra_params2'"
84+
TEST_FILTER="-k"
85+
TEST_EXPRESSION="extra_params1 or extra_params2"
8586
else
86-
TEST_FILTER="-k 'extra_params0 or not extra_params'"
87+
TEST_FILTER="-k"
88+
TEST_EXPRESSION="extra_params0 or not extra_params"
8789
fi
8890
8991
TEST_NAME=$(basename "${{ matrix.test_file }}" .py)
9092
COVERAGE_FILE="coverage-${TEST_NAME}-${{ matrix.mode }}.xml"
9193
92-
poetry run pytest "${{ matrix.test_file }}" $TEST_FILTER \
94+
poetry run pytest "${{ matrix.test_file }}" "$TEST_FILTER" "$TEST_EXPRESSION" \
9395
--cov=src --cov-report=xml:$COVERAGE_FILE --cov-report=term \
9496
-v
9597
continue-on-error: false

0 commit comments

Comments
 (0)