summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-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