From 00586142e3be13b987b5dcb52b9af3a2ad2b3546 Mon Sep 17 00:00:00 2001 From: alpharush <0xalpharush@protonmail.com> Date: Tue, 31 Jan 2023 11:43:33 -0600 Subject: [PATCH 1/2] run tests in parallel --- .github/workflows/detectors.yml | 2 +- .github/workflows/parser.yml | 2 +- setup.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/detectors.yml b/.github/workflows/detectors.yml index 15aa8a5dd9..3c1b973afd 100644 --- a/.github/workflows/detectors.yml +++ b/.github/workflows/detectors.yml @@ -38,4 +38,4 @@ jobs: solc-select use 0.7.3 --always-install - name: Test with pytest run: | - pytest tests/test_detectors.py + pytest tests/test_detectors.py -n auto diff --git a/.github/workflows/parser.yml b/.github/workflows/parser.yml index 5e11420cfd..e4ea82ef8a 100644 --- a/.github/workflows/parser.yml +++ b/.github/workflows/parser.yml @@ -42,4 +42,4 @@ jobs: - name: Test with pytest run: | - pytest tests/test_ast_parsing.py + pytest tests/test_ast_parsing.py -n auto diff --git a/setup.py b/setup.py index a5f5006042..7879ebf46e 100644 --- a/setup.py +++ b/setup.py @@ -24,6 +24,7 @@ "pylint==2.13.4", "pytest", "pytest-cov", + "pytest-xdist", "deepdiff", "numpy", "solc-select>=v1.0.0b1", From 4e04eb5f8044b5b943077227a8d5db1d6b45fb13 Mon Sep 17 00:00:00 2001 From: alpharush <0xalpharush@protonmail.com> Date: Tue, 31 Jan 2023 12:24:49 -0600 Subject: [PATCH 2/2] remove as tests aren't thread safe --- .github/workflows/detectors.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/detectors.yml b/.github/workflows/detectors.yml index 3c1b973afd..6b1f2df5ec 100644 --- a/.github/workflows/detectors.yml +++ b/.github/workflows/detectors.yml @@ -38,4 +38,4 @@ jobs: solc-select use 0.7.3 --always-install - name: Test with pytest run: | - pytest tests/test_detectors.py -n auto + pytest tests/test_detectors.py