Skip to content

Commit

Permalink
Experimental parallelization of pyodide CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jobh committed Jun 25, 2024
1 parent 8f4aef1 commit adb0554
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,11 @@ jobs:
- name: Run tests
run: |
source .venv-pyodide/bin/activate
python -m pytest -p no:cacheprovider hypothesis-python/tests/cover
# pyodide can't run multiple processes internally, so parallelize explicitly over
# discovered test files instead (20 at a time)
TEST_FILES=$(python -m pytest -p no:cacheprovider --setup-plan hypothesis-python/tests/cover | grep ^hypothesis-python/ | cut -d " " -f 1)
parallel --max-procs 100% --max-args 20 --keep-order --line-buffer \
python -m pytest -p no:cacheprovider <<< $TEST_FILES
deploy:
if: "github.event_name == 'push' && github.repository == 'HypothesisWorks/hypothesis'"
Expand Down

0 comments on commit adb0554

Please sign in to comment.