summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-11-16 23:28:49 +0100
committerGitHub <noreply@github.com>2022-11-16 23:28:49 +0100
commite47beceb8a665aba360813fb55aa08cc8bd86dbe (patch)
tree24622716244b3b18d8f9d45adae555c901b5d26e
parent067976f4b8a0fd9412ada270f2249576dc70f88e (diff)
downloadspack-e47beceb8a665aba360813fb55aa08cc8bd86dbe.tar.gz
spack-e47beceb8a665aba360813fb55aa08cc8bd86dbe.tar.bz2
spack-e47beceb8a665aba360813fb55aa08cc8bd86dbe.tar.xz
spack-e47beceb8a665aba360813fb55aa08cc8bd86dbe.zip
Clean unit-test workflow file (#33945)
Delete statements related to Python 2.7, and avoid installing patchelf since now we can bootstrap it.
-rw-r--r--.github/workflows/unit_tests.yaml21
1 files changed, 5 insertions, 16 deletions
diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml
index 5b33b40f64..828cc44773 100644
--- a/.github/workflows/unit_tests.yaml
+++ b/.github/workflows/unit_tests.yaml
@@ -59,20 +59,11 @@ jobs:
# Needed for unit tests
sudo apt-get -y install \
coreutils cvs gfortran graphviz gnupg2 mercurial ninja-build \
- patchelf cmake bison libbison-dev kcov
+ cmake bison libbison-dev kcov
- name: Install Python packages
run: |
- pip install --upgrade pip six setuptools pytest codecov[toml] pytest-xdist
- # Install pytest-cov only on recent Python, to avoid stalling on Python 2.7 due
- # to bugs on an unmaintained version of the package when used with xdist.
- if [[ ${{ matrix.python-version }} != "2.7" ]]; then
- pip install --upgrade pytest-cov
- 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
- pip install --upgrade flake8 "isort>=4.3.5" "mypy>=0.900" "click==8.0.4" "black<=21.12b0"
- fi
+ pip install --upgrade pip six setuptools pytest codecov[toml] pytest-xdist pytest-cov
+ pip install --upgrade flake8 "isort>=4.3.5" "mypy>=0.900" "click" "black"
- name: Setup git configuration
run: |
# Need this for the git tests to succeed.
@@ -85,6 +76,7 @@ jobs:
run: |
. share/spack/setup-env.sh
spack bootstrap disable spack-install
+ spack bootstrap now
spack -v solve zlib
- name: Run unit tests
env:
@@ -168,10 +160,7 @@ jobs:
- name: Install System packages
run: |
sudo apt-get -y update
- # Needed for unit tests
- sudo apt-get -y install \
- coreutils cvs gfortran graphviz gnupg2 mercurial ninja-build \
- patchelf kcov
+ sudo apt-get -y install coreutils cvs gfortran graphviz gnupg2 mercurial ninja-build kcov
- name: Install Python packages
run: |
pip install --upgrade pip six setuptools pytest codecov coverage[toml] pytest-cov clingo pytest-xdist