From c710a1597f3566ab850d0ee8c82e71af04a08f9e Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Wed, 16 Oct 2024 09:12:14 +0200 Subject: 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 --- .github/workflows/unit_tests.yaml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to '.github/workflows') 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 -- cgit v1.2.3-70-g09d2