Skip to content

Commit ddf2b0d

Browse files
authored
ci (feature): use run-parallel and shared wheel packages for tox (#408)
* chore: use run-parallel for tox in pre-commit python hook * chore: use run-parallel for tox in github test actions * chore: use wheel instead of sdist and share across tox envs https://hynek.me/articles/turbo-charge-tox/ * docs: update tox command to use run-parallel * docs: update changelog
1 parent 37ceb8b commit ddf2b0d

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
python: '3.10'
1313
solc: '0.8.20'
1414
evm-type: 'main'
15-
tox-cmd: 'tox'
15+
tox-cmd: 'tox run-parallel --parallel-no-spinner'
1616
- os: ubuntu-latest
1717
python: '3.12'
1818
solc: '0.8.23'
1919
evm-type: 'main'
20-
tox-cmd: 'tox'
20+
tox-cmd: 'tox run-parallel --parallel-no-spinner'
2121
- os: ubuntu-latest
2222
python: '3.11'
2323
solc: '0.8.21'
@@ -27,7 +27,7 @@ jobs:
2727
python: '3.11'
2828
solc: '0.8.22'
2929
evm-type: 'main'
30-
tox-cmd: 'tox'
30+
tox-cmd: 'tox run-parallel --parallel-no-spinner'
3131
steps:
3232
- uses: actions/checkout@v3
3333
with:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ repos:
33
hooks:
44
- id: tox
55
name: tox
6-
entry: tox
6+
entry: tox run-parallel
77
language: system
88
types: [python]
99
pass_filenames: false

docs/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Test fixtures for use by clients are available for each release on the [Github r
1616

1717
### 📋 Misc
1818

19+
- ✨ Use `run-parallel` and shared wheel packages for `tox` ([#408](https://github.com/ethereum/execution-spec-tests/pull/408)).
20+
1921
### 💥 Breaking Changes
2022

2123
## [v2.0.0](https://github.com/ethereum/execution-spec-tests/releases/tag/v2.0.0) - 2024-01-25: 🐍🏖️ Cancun

docs/writing_tests/verifying_changes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ pip install tox
1919

2020
Run tox, as executed in Github Actions, with:
2121

22+
```console
23+
tox run-parallel
24+
```
25+
26+
or, with sequential test environment execution and verbose output as:
27+
2228
```console
2329
tox
2430
```

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ env_list =
77
[main]
88
development_fork = Cancun
99

10+
[testenv]
11+
package = wheel
12+
wheel_build_env = .pkg
13+
1014
[testenv:framework]
1115
description = Run checks on helper libraries and test framework
1216

0 commit comments

Comments
 (0)