summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2024-10-16 09:12:14 +0200
committerGitHub <noreply@github.com>2024-10-16 09:12:14 +0200
commitc710a1597f3566ab850d0ee8c82e71af04a08f9e (patch)
tree551f74d8200f3e4cf79b314ff90a70a2126b5cd5 /.github/workflows
parent8c70912b118ee65f073960b9e2f8a6bc95fae290 (diff)
downloadspack-c710a1597f3566ab850d0ee8c82e71af04a08f9e.tar.gz
spack-c710a1597f3566ab850d0ee8c82e71af04a08f9e.tar.bz2
spack-c710a1597f3566ab850d0ee8c82e71af04a08f9e.tar.xz
spack-c710a1597f3566ab850d0ee8c82e71af04a08f9e.zip
Reduce the load on clingo-cffi CI job (#46982)
The purpose of this CI job is to ensure that we can use a modern clingo to concretize specs, if e.g. it was installed in a virtual environment with pip. Since there is no need to re-test unrelated parts of Spack, reduce the number of tests we run to just concretize.py
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/unit_tests.yaml19
1 files changed, 10 insertions, 9 deletions
diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml
index 47816e3e06..124d77e0b5 100644
--- a/.github/workflows/unit_tests.yaml
+++ b/.github/workflows/unit_tests.yaml
@@ -154,26 +154,27 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
with:
- python-version: '3.11'
+ python-version: '3.13'
- name: Install System packages
run: |
sudo apt-get -y update
- sudo apt-get -y install coreutils cvs gfortran graphviz gnupg2 mercurial ninja-build kcov
+ sudo apt-get -y install coreutils gfortran graphviz gnupg2
- name: Install Python packages
run: |
- pip install --upgrade pip setuptools pytest coverage[toml] pytest-cov clingo pytest-xdist
+ pip install --upgrade pip setuptools pytest coverage[toml] pytest-cov clingo
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.
- git --version
- . .github/workflows/bin/setup_git.sh
- name: Run unit tests (full suite with coverage)
env:
COVERAGE: true
COVERAGE_FILE: coverage/.coverage-clingo-cffi
run: |
- share/spack/qa/run-unit-tests
+ . share/spack/setup-env.sh
+ spack bootstrap disable spack-install
+ spack bootstrap disable github-actions-v0.4
+ spack bootstrap disable github-actions-v0.5
+ spack bootstrap status
+ spack solve zlib
+ spack unit-test --verbose --cov --cov-config=pyproject.toml --cov-report=xml:coverage.xml lib/spack/spack/test/concretize.py
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
with:
name: coverage-clingo-cffi