diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6166c1d3d8..1408d79a0c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,12 +12,12 @@ jobs: python: '3.10' solc: '0.8.20' evm-type: 'main' - tox-cmd: 'tox' + tox-cmd: 'tox run-parallel --parallel-no-spinner' - os: ubuntu-latest python: '3.12' solc: '0.8.23' evm-type: 'main' - tox-cmd: 'tox' + tox-cmd: 'tox run-parallel --parallel-no-spinner' - os: ubuntu-latest python: '3.11' solc: '0.8.21' @@ -27,7 +27,7 @@ jobs: python: '3.11' solc: '0.8.22' evm-type: 'main' - tox-cmd: 'tox' + tox-cmd: 'tox run-parallel --parallel-no-spinner' steps: - uses: actions/checkout@v3 with: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2167cebf7a..a0d51c0a09 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: hooks: - id: tox name: tox - entry: tox + entry: tox run-parallel language: system types: [python] pass_filenames: false diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 040205b588..f43453b086 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -16,6 +16,8 @@ Test fixtures for use by clients are available for each release on the [Github r ### 📋 Misc +- ✨ Use `run-parallel` and shared wheel packages for `tox` ([#408](https://github.com/ethereum/execution-spec-tests/pull/408)). + ### 💥 Breaking Changes ## [v2.0.0](https://github.com/ethereum/execution-spec-tests/releases/tag/v2.0.0) - 2024-01-25: 🐍🏖️ Cancun diff --git a/docs/writing_tests/verifying_changes.md b/docs/writing_tests/verifying_changes.md index 24a5211e96..0c62a0d8b6 100644 --- a/docs/writing_tests/verifying_changes.md +++ b/docs/writing_tests/verifying_changes.md @@ -19,6 +19,12 @@ pip install tox Run tox, as executed in Github Actions, with: +```console +tox run-parallel +``` + +or, with sequential test environment execution and verbose output as: + ```console tox ``` diff --git a/tox.ini b/tox.ini index 04f8e382bf..a3a8090f76 100644 --- a/tox.ini +++ b/tox.ini @@ -7,6 +7,10 @@ env_list = [main] development_fork = Cancun +[testenv] +package = wheel +wheel_build_env = .pkg + [testenv:framework] description = Run checks on helper libraries and test framework