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
This commit is contained in:
parent
8c70912b11
commit
c710a1597f
19
.github/workflows/unit_tests.yaml
vendored
19
.github/workflows/unit_tests.yaml
vendored
@ -154,26 +154,27 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
|
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.13'
|
||||||
- name: Install System packages
|
- name: Install System packages
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get -y update
|
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
|
- name: Install Python packages
|
||||||
run: |
|
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"
|
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)
|
- name: Run unit tests (full suite with coverage)
|
||||||
env:
|
env:
|
||||||
COVERAGE: true
|
COVERAGE: true
|
||||||
COVERAGE_FILE: coverage/.coverage-clingo-cffi
|
COVERAGE_FILE: coverage/.coverage-clingo-cffi
|
||||||
run: |
|
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
|
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
|
||||||
with:
|
with:
|
||||||
name: coverage-clingo-cffi
|
name: coverage-clingo-cffi
|
||||||
|
Loading…
Reference in New Issue
Block a user