Skip to content

Commit

Permalink
ci (feature): use run-parallel and shared wheel packages for tox (#408
Browse files Browse the repository at this point in the history
)

* 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
  • Loading branch information
danceratopz authored Jan 29, 2024
1 parent 37ceb8b commit ddf2b0d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ repos:
hooks:
- id: tox
name: tox
entry: tox
entry: tox run-parallel
language: system
types: [python]
pass_filenames: false
Expand Down
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions docs/writing_tests/verifying_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ddf2b0d

Please sign in to comment.