Skip to content

Commit 205eca1

Browse files
author
Saqib
committed
Limit pytest parallelism to 2 workers in CI
1 parent 896ff03 commit 205eca1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test-and-report_multiple_jobs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- id: set-matrix
1919
name: Find all smoke test files and build matrix
2020
run: |
21-
readarray -t files < <(find tests -type f -path "*consumer/smoke/test_*.py")
21+
readarray -t files < <(find tests -type f -path "*/smoke/test_*.py")
2222
includes=(); i=0
2323
for file in "${files[@]}"; do
2424
flow=$(echo "$file" | awk -F'/' '{print $2}')
@@ -84,7 +84,7 @@ jobs:
8484
export TEST_EMAIL="$TEST_EMAIL_2"
8585
export TEST_PASSWORD="$TEST_PASSWORD_2"
8686
fi
87-
pytest -n auto "${{ matrix.test_file }}" -v --json-report
87+
pytest -n 2 "${{ matrix.test_file }}" -v --json-report
8888
8989
- name: List screenshots
9090
if: always()

0 commit comments

Comments
 (0)