From 5ffec5bf4a6747f39bfa4c297aeb067d2c2c5db3 Mon Sep 17 00:00:00 2001 From: Kelly Sovacool Date: Sun, 29 Jan 2023 21:25:52 -0500 Subject: [PATCH] Switch from pytest-parallel to pytest-xdist Got a warning in pytest-parallel, found out it's no longer maintained. https://github.com/kevlened/pytest-parallel/issues/118 --- .github/workflows/tests.yml | 4 ++-- workflow/envs/github-actions.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8f890f3..12c380f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,8 +42,8 @@ jobs: args: "archive --forceall --cores 2 --use-conda --conda-frontend mamba --conda-cleanup-pkgs cache --show-failed-logs --all-temp --configfile config/test.yaml" # - name: Test with pytest # run: | -# pytest --workers 2 .tests/ +# pytest -n 2 .tests/ - name: Test with pytest shell: bash -el {0} run: | - pytest --workers 2 workflow/scripts/ \ No newline at end of file + pytest -n 2 workflow/scripts/ \ No newline at end of file diff --git a/workflow/envs/github-actions.yml b/workflow/envs/github-actions.yml index 266b249..9f9e175 100644 --- a/workflow/envs/github-actions.yml +++ b/workflow/envs/github-actions.yml @@ -7,7 +7,7 @@ channels: dependencies: - black - pytest - - pytest-parallel + - pytest-xdist - python=3.11 - r-base=4 - r-styler