Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infra: add opts for tox builds ran in parallel #759

Merged
merged 12 commits into from
May 6, 2024
2 changes: 1 addition & 1 deletion .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
pip install tox
- name: Run code format checks
run: |
tox -e linters_check
tox -e linters_check -p auto
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ To run linters and doc generators and unit tests:
tox
```

or if your machine can handle higher workloads, run them in parallel with:
AbeCoull marked this conversation as resolved.
Show resolved Hide resolved

```bash
tox -p auto
```

### Integration Tests

First, configure a profile to use your account to interact with AWS. To learn more, see [Configure AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html).
Expand Down
7 changes: 6 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
[tox]
envlist = clean,linters,docs,unit-tests

[testenv]
parallel_show_output = true
package = wheel
wheel_build_env = .pkg

[testenv:clean]
deps = coverage
skip_install = true
Expand Down Expand Up @@ -104,7 +109,7 @@ deps =
sphinx-rtd-theme
sphinxcontrib-apidoc
commands =
sphinx-build -E -T -b html doc build/documentation/html
sphinx-build -E -T -b html doc build/documentation/html -j auto

[testenv:serve-docs]
basepython = python3
Expand Down