summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-10-22 15:53:42 +0200
committerGitHub <noreply@github.com>2022-10-22 15:53:42 +0200
commitdc110db65d9ddbc903260185f8766ddf1123653a (patch)
tree787bb2eef1e6b491c32532f90a684f914e712bd6 /.github
parent5e2f2587670f9cd7a1cad99693359158784ff410 (diff)
downloadspack-dc110db65d9ddbc903260185f8766ddf1123653a.tar.gz
spack-dc110db65d9ddbc903260185f8766ddf1123653a.tar.bz2
spack-dc110db65d9ddbc903260185f8766ddf1123653a.tar.xz
spack-dc110db65d9ddbc903260185f8766ddf1123653a.zip
Don't install xdist in CI on Python 2.7 (#33474)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/unit_tests.yaml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml
index 29211ae2bb..aef69fb60f 100644
--- a/.github/workflows/unit_tests.yaml
+++ b/.github/workflows/unit_tests.yaml
@@ -52,7 +52,12 @@ jobs:
patchelf cmake bison libbison-dev kcov
- name: Install Python packages
run: |
- pip install --upgrade pip six setuptools pytest codecov[toml] pytest-cov pytest-xdist
+ pip install --upgrade pip six setuptools pytest codecov[toml] pytest-cov
+ # Install xdist only on recent Python, to avoid stalling on Python 2.7 due
+ # to bugs on an unmaintained version of the package.
+ if [[ ${{ matrix.python-version }} != "2.7" ]]; then
+ pip install --upgrade pytest-xdist
+ fi
# ensure style checks are not skipped in unit tests for python >= 3.6
# note that true/false (i.e., 1/0) are opposite in conditions in python and bash
if python -c 'import sys; sys.exit(not sys.version_info >= (3, 6))'; then