diff options
Diffstat (limited to '.github')
-rwxr-xr-x | .github/actions/add-maintainers-as-reviewers/entrypoint.py | 2 | ||||
-rw-r--r-- | .github/dependabot.yml | 7 | ||||
-rw-r--r-- | .github/workflows/linux_build_tests.yaml | 2 | ||||
-rw-r--r-- | .github/workflows/linux_unit_tests.yaml | 27 | ||||
-rw-r--r-- | .github/workflows/macos_unit_tests.yaml | 2 | ||||
-rw-r--r-- | .github/workflows/style_and_docs.yaml | 12 |
6 files changed, 43 insertions, 9 deletions
diff --git a/.github/actions/add-maintainers-as-reviewers/entrypoint.py b/.github/actions/add-maintainers-as-reviewers/entrypoint.py index aa89fcd468..c5cb147230 100755 --- a/.github/actions/add-maintainers-as-reviewers/entrypoint.py +++ b/.github/actions/add-maintainers-as-reviewers/entrypoint.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..2c7d170839 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/linux_build_tests.yaml b/.github/workflows/linux_build_tests.yaml index 0a2946f63f..6850ab097e 100644 --- a/.github/workflows/linux_build_tests.yaml +++ b/.github/workflows/linux_build_tests.yaml @@ -37,7 +37,7 @@ jobs: - ruby-rake # RubyPackage steps: - uses: actions/checkout@v2 - - uses: actions/cache@v2 + - uses: actions/cache@v2.1.4 with: path: ~/.ccache key: ccache-build-${{ matrix.package }} diff --git a/.github/workflows/linux_unit_tests.yaml b/.github/workflows/linux_unit_tests.yaml index c87ea6e07a..47adfb3e8f 100644 --- a/.github/workflows/linux_unit_tests.yaml +++ b/.github/workflows/linux_unit_tests.yaml @@ -103,6 +103,7 @@ jobs: - uses: codecov/codecov-action@v1 with: flags: shelltests,linux + centos6: # Test for Python2.6 run on Centos 6 runs-on: ubuntu-latest @@ -117,6 +118,32 @@ jobs: git fetch origin ${{ github.ref }}:test-branch git checkout test-branch share/spack/qa/run-unit-tests + + rhel8-platform-python: + runs-on: ubuntu-latest + container: registry.access.redhat.com/ubi8/ubi + steps: + - name: Install dependencies + run: | + dnf install -y \ + bzip2 curl file gcc-c++ gcc gcc-gfortran git gnupg2 gzip \ + make patch tcl unzip which xz + - uses: actions/checkout@v2 + - name: Setup repo and non-root user + run: | + git --version + git fetch --unshallow + . .github/workflows/setup_git.sh + useradd spack-test + chown -R spack-test . + - name: Run unit tests + env: + SPACK_PYTHON: /usr/libexec/platform-python + shell: runuser -u spack-test -- bash {0} + run: | + source share/spack/setup-env.sh + spack unit-test -k 'not svn and not hg' -x --verbose + clingo: # Test for the clingo based solver runs-on: ubuntu-latest diff --git a/.github/workflows/macos_unit_tests.yaml b/.github/workflows/macos_unit_tests.yaml index 29caaa2e08..e5918968d2 100644 --- a/.github/workflows/macos_unit_tests.yaml +++ b/.github/workflows/macos_unit_tests.yaml @@ -26,7 +26,7 @@ jobs: run: | pip install --upgrade pip six setuptools pip install --upgrade codecov coverage - pip install --upgrade flake8 pep8-naming + pip install --upgrade flake8 pep8-naming mypy - name: Setup Homebrew packages run: | brew install dash fish gcc gnupg2 kcov diff --git a/.github/workflows/style_and_docs.yaml b/.github/workflows/style_and_docs.yaml index 5abedab784..0f84e1e885 100644 --- a/.github/workflows/style_and_docs.yaml +++ b/.github/workflows/style_and_docs.yaml @@ -22,10 +22,10 @@ jobs: pip install --upgrade pip pip install --upgrade vermin - name: Minimum Version (Spack's Core) - run: vermin --backport argparse -t=2.6- -t=3.5- -v lib/spack/spack/ lib/spack/llnl/ bin/ + run: vermin --backport argparse --backport typing -t=2.6- -t=3.5- -v lib/spack/spack/ lib/spack/llnl/ bin/ - name: Minimum Version (Repositories) - run: vermin --backport argparse -t=2.6- -t=3.5- -v var/spack/repos - flake8: + run: vermin --backport argparse --backport typing -t=2.6- -t=3.5- -v var/spack/repos + style: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -36,15 +36,15 @@ jobs: python-version: 3.9 - name: Install Python packages run: | - pip install --upgrade pip six setuptools flake8 + pip install --upgrade pip six setuptools flake8 mypy>=0.800 black - name: Setup git configuration run: | # Need this for the git tests to succeed. git --version . .github/workflows/setup_git.sh - - name: Run flake8 tests + - name: Run style tests run: | - share/spack/qa/run-flake8-tests + share/spack/qa/run-style-tests documentation: runs-on: ubuntu-latest steps: |