diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2022-09-08 19:58:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-08 10:58:53 -0700 |
commit | 67534516c73d8ac63ec7e2b2c3459c6150171f41 (patch) | |
tree | 56fe423d8ce13abbb79c4e1f077e1ddee4f7d636 /share | |
parent | dc1734f0a6e66752cadb214ae6fc1ce7c258e5fa (diff) | |
download | spack-67534516c73d8ac63ec7e2b2c3459c6150171f41.tar.gz spack-67534516c73d8ac63ec7e2b2c3459c6150171f41.tar.bz2 spack-67534516c73d8ac63ec7e2b2c3459c6150171f41.tar.xz spack-67534516c73d8ac63ec7e2b2c3459c6150171f41.zip |
ci: avoid running coverage on package only PRs (#32573)
* ci: remove !docs from "core" filters
Written like it is now it causes package only PRs
to run with coverage.
* Try to skip job under condition, see if the workflow proceed
* Try to cancel a running CI job
* Simplify linux unit-tests, skip windows unit-tests on package PRs
* Reduce the inputs to unit-tests workflow
* Move control logic to main workflow, remove inputs
* Revert "Move control logic to main workflow, remove inputs"
This reverts commit 0c46fece4c49eb7a37585ec3ba651a31d7f958af.
* Do not compute "with_coverage" since it's always == to "core"
* Remove workflow dispatch from unit tests
* Revert "Revert "Move control logic to main workflow, remove inputs""
This reverts commit dd4e4a4e61a825901e736348fd044d37e88c90b5.
* Try to skip all from the main workflow
* Add back bootstrap to needed checks for "all"
* Restore the correct logic for conditionals
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/qa/run-unit-tests | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests index 62cca273bf..da8334f76b 100755 --- a/share/spack/qa/run-unit-tests +++ b/share/spack/qa/run-unit-tests @@ -46,10 +46,7 @@ $coverage_run $(which spack) python -c "import spack.pkg.builtin.mpileaks; repr( #----------------------------------------------------------- # Run unit tests with code coverage #----------------------------------------------------------- -if [[ "$ONLY_PACKAGES" == "true" ]]; then - echo "ONLY PACKAGE RECIPES CHANGED [running only package sanity]" - export PYTEST_ADDOPTS='-k "test_all_virtual_packages_have_default_providers" -m "not maybeslow"' -elif [[ "$SPACK_TEST_SOLVER" == "original" ]]; then +if [[ "$SPACK_TEST_SOLVER" == "original" ]]; then echo "ORIGINAL CONCRETIZER [skipping slow unit tests]" export PYTEST_ADDOPTS='-m "not maybeslow"' fi |