diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c04a3f5466..e07af15508 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,14 +108,14 @@ jobs: - name: Tests (standard library only, no game data) shell: bash run: | - # Keep the pytest selection predicate, but run the selected files four at a time. + # Keep the pytest selection predicate, but run the selected files eight at a time (one short Python process each). # The runner reports every failure instead of stopping at the first one. while IFS= read -r t; do if grep -Eq "$PYTEST_FILE_MARKERS" "$t" || ! grep -q '__main__' "$t"; then continue fi printf '%s\n' "$t" - done < <(find tests -path 'tests/semantic' -prune -o -type f -name 'test_*.py' -print | LC_ALL=C sort) | python -I scripts/run_standalone_tests.py -j 4 + done < <(find tests -path 'tests/semantic' -prune -o -type f -name 'test_*.py' -print | LC_ALL=C sort) | python -I scripts/run_standalone_tests.py -j 8 - name: Build rpf9dump run: dotnet build tools/rpf9dump/rpf9dump.csproj -c Release - name: Test TTPF export retry @@ -200,7 +200,7 @@ jobs: continue fi printf '%s\n' "$t" - done < <(find tests -path 'tests/semantic' -prune -o -type f -name 'test_*.py' -print | LC_ALL=C sort) | python -I scripts/run_standalone_tests.py -j 4 + done < <(find tests -path 'tests/semantic' -prune -o -type f -name 'test_*.py' -print | LC_ALL=C sort) | python -I scripts/run_standalone_tests.py -j 8 semantic-tests: needs: change-scope diff --git a/tests/test_ci_registration.py b/tests/test_ci_registration.py index 5eed7dabc2..d640a5a74d 100644 --- a/tests/test_ci_registration.py +++ b/tests/test_ci_registration.py @@ -813,7 +813,7 @@ def test_loop_runs_past_a_failure_and_names_every_failed_file(self): def test_step_script_reads_the_check_loop(self): script = step_script(ROOT, STDLIB_STEP) - self.assertIn('python -I scripts/run_standalone_tests.py -j 4', script) + self.assertIn('python -I scripts/run_standalone_tests.py -j 8', script) self.assertIn("-name 'test_*.py'", script)