From 5845828c0914d05d5c095b1154713de28154603a Mon Sep 17 00:00:00 2001 From: Peter Law Date: Tue, 24 Oct 2023 23:18:19 +0100 Subject: [PATCH] Use pytest-xdist to speed up CI --- .github/workflows/build-and-test.yml | 2 +- setup.cfg | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 3dfc306..e385020 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -83,7 +83,7 @@ jobs: - name: Test with pytest run: | - coverage run --branch --include='asttokens/*' -m pytest --junitxml=./rspec.xml + coverage run --branch --include='asttokens/*' -m pytest -n auto --junitxml=./rspec.xml coverage report -m - name: Collect coverage results diff --git a/setup.cfg b/setup.cfg index 2419f6e..6bd1da1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -47,6 +47,7 @@ test = astroid >=1, <2; python_version < "3" astroid >=2, <4; python_version >= "3" pytest + pytest-xdist [options.package_data] asttokens = py.typed