Skip to content

Commit

Permalink
ci: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bolinocroustibat committed Dec 21, 2024
1 parent 271708a commit 74972a2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,17 @@ jobs:
if [ "$CIRCLE_NODE_INDEX" = "0" ]; then
echo "Running all tests except parallel ones..."
# Create exclude pattern for find command
EXCLUDE_PATTERN=$(echo "$PARALLEL_TESTS" | tr '\n' '|' | sed 's/|$//' | sed 's/^/.*(//' | sed 's/$/)/')
find . -name "test_*.py" | grep -vE "$EXCLUDE_PATTERN" | xargs inv test --report --ci --paths
# Create a temporary file with all test files
find . -name "test_*.py" > all_tests.txt
# Remove parallel tests from the list
for test in $PARALLEL_TESTS_LIST; do
sed -i "\:$test:d" all_tests.txt
done
# Run remaining tests - all at once instead of trying to pass them individually
inv test --report --ci
else
echo "Running parallel tests: $PARALLEL_TESTS_LIST"
inv test --report --ci --paths $PARALLEL_TESTS_LIST
inv test --report --ci --paths "$PARALLEL_TESTS_LIST"
fi
- store_test_results:
path: reports/python
Expand Down

0 comments on commit 74972a2

Please sign in to comment.