noaa-emc/Spack package tester

Install and test code through Spack

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 25, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: noaa-emc/ci-test-spack-package@e28e8cdb6bed7da48713986ec8c3f942d3dc5b0f # v2.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
package-nameSpack package name to be tested (no version number or variants)yes
package-versionVersion of Spack package to be testednodevelop
package-variantsVariants to apply to package specno
custom-recipePath to custom recipe for package to be tested, relative to repo rootnonone
dependents-to-testSpack packages to also run unit tests for (space-delimited list with variants)no
use-common-build-cacheUse common GitHub Packages binary mirrortrue
upload-artifactsUpload certain logs on job failure (options: always, never, on-failure)noon-failure
repo-dirDirectory containing modified code to be tested (default is to download automatically)noauto
spack-refSpack tag/branch/commit to usenodevelop
cpu-targetSpack CPU targetnox86_64
spack-externalsExternal packages for Spack to try to useno""
spack-compilerSet spec for Spack compiler (e.g., "gcc@12")nogcc
parallel-jobsSet number of Spack parallel install jobs ("spack install -j/--jobs")no2
spack-rootSpack root directorynospack-root
cache-secretSecret for build cacheno
unique-idUnique ID for artifact nameno
use-repo-cacheEnable repo-level cachingtrue
repo-cache-key-suffixString to append to repo-level cache key1
repo-save-key-suffixSave a repo-level cache entry different from the restored one""
cache-spack-lockCache spack.lock to speed up concretizationtrue
test-package-loadRun "spack load <package-name>" to verify setup_run_environment() does not failtrue
spack-test-flagFlag to use for enabling install-time testing (argument to `spack install`)--test root
save-repo-cacheSave repo cache (use-repo-cache must be true)true
dependencies-onlyOnly install the requested spec's dependenciesfalse
package-onlyOnly install the requested spec (no deps; only useful for CI testing)false
no-cached-rootsDon't install from build-cached packages for root specstrue

no outputs