Skip to content

Commit d7285b9

Browse files
committed
ci: run tests individually with 14 runners and payments app
1 parent 8d08739 commit d7285b9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/helper/site_config_mariadb.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"root_login": "root",
1313
"root_password": "root",
1414
"host_name": "http://test_site:8000",
15-
"install_apps": ["erpnext"],
15+
"install_apps": ["erpnext", "payments"],
1616
"throttle_user_limit": 100
1717
}

.github/workflows/run-individual-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- id: set-matrix
2727
run: |
2828
# Use grep and find to get the list of test files
29-
matrix=$(find . -path '*/doctype/*/test_*.py' | xargs grep -l 'def test_' | sort | head -n 5 | awk '{
29+
matrix=$(find . -path '*/test_*.py' | xargs grep -l 'def test_' | sort | awk '{
3030
# Remove ./ prefix, file extension, and replace / with .
3131
gsub(/^\.\//, "", $0)
3232
gsub(/\.py$/, "", $0)
@@ -63,6 +63,7 @@ jobs:
6363
strategy:
6464
fail-fast: false
6565
matrix: ${{fromJson(needs.discover.outputs.matrix)}}
66+
max-parallel: 14
6667

6768
name: Test
6869

0 commit comments

Comments
 (0)