From da735191974629ced06c9cbb7179e77b172ecf14 Mon Sep 17 00:00:00 2001 From: Abe Coull Date: Tue, 24 Oct 2023 15:09:57 -0700 Subject: [PATCH 1/4] infra: add opts for tox builds ran in parallel --- .github/workflows/check-format.yml | 2 +- setup.cfg | 2 +- tox.ini | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index 034e95bee..8167ae171 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -27,4 +27,4 @@ jobs: pip install -e .[test] - name: Run code format checks run: | - tox -e linters_check + tox -e linters_check -p auto diff --git a/setup.cfg b/setup.cfg index 94f28ec7d..d8586de03 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,7 +5,7 @@ test=pytest xfail_strict = true # https://pytest-xdist.readthedocs.io/en/latest/known-limitations.html addopts = - --verbose -n auto --durations=0 --durations-min=1 + -n auto --durations=0 --durations-min=1 testpaths = test/unit_tests [isort] diff --git a/tox.ini b/tox.ini index b77ac4525..f3a17cd8b 100644 --- a/tox.ini +++ b/tox.ini @@ -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 From b081476477a0d90a0b89fd56ca1b35379549e421 Mon Sep 17 00:00:00 2001 From: Abe Coull Date: Tue, 24 Oct 2023 15:12:35 -0700 Subject: [PATCH 2/4] readme update --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 1c79e8034..3889531de 100644 --- a/README.md +++ b/README.md @@ -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: + +```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). From 7d21eafa5527213e447178ca7e6a54197214d6d3 Mon Sep 17 00:00:00 2001 From: Abe Coull Date: Tue, 24 Oct 2023 15:25:28 -0700 Subject: [PATCH 3/4] give the docs builds some more juice --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index f3a17cd8b..9fa9c89d9 100644 --- a/tox.ini +++ b/tox.ini @@ -110,7 +110,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 From 67bada375e0205e7ffdc1868d163c736b09e1afc Mon Sep 17 00:00:00 2001 From: Abe Coull <85974725+math411@users.noreply.github.com> Date: Wed, 21 Feb 2024 09:44:49 -0800 Subject: [PATCH 4/4] Update README.md Co-authored-by: Cody Wang --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3889531de..2e0eafa55 100644 --- a/README.md +++ b/README.md @@ -205,7 +205,7 @@ To run linters and doc generators and unit tests: tox ``` -or if your machine can handle higher workloads, run them in parallel with: +or if your machine can handle multithreaded workloads, run them in parallel with: ```bash tox -p auto