noaa-emc/Spack package tester
Install and test code through Spack
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 25, 2026
- License
- None
Pinned Snippet
uses: noaa-emc/ci-test-spack-package@e28e8cdb6bed7da48713986ec8c3f942d3dc5b0f # v2.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| package-name | Spack package name to be tested (no version number or variants) | yes | — |
| package-version | Version of Spack package to be tested | no | develop |
| package-variants | Variants to apply to package spec | no | — |
| custom-recipe | Path to custom recipe for package to be tested, relative to repo root | no | none |
| dependents-to-test | Spack packages to also run unit tests for (space-delimited list with variants) | no | — |
| use-common-build-cache | Use common GitHub Packages binary mirror | — | true |
| upload-artifacts | Upload certain logs on job failure (options: always, never, on-failure) | no | on-failure |
| repo-dir | Directory containing modified code to be tested (default is to download automatically) | no | auto |
| spack-ref | Spack tag/branch/commit to use | no | develop |
| cpu-target | Spack CPU target | no | x86_64 |
| spack-externals | External packages for Spack to try to use | no | "" |
| spack-compiler | Set spec for Spack compiler (e.g., "gcc@12") | no | gcc |
| parallel-jobs | Set number of Spack parallel install jobs ("spack install -j/--jobs") | no | 2 |
| spack-root | Spack root directory | no | spack-root |
| cache-secret | Secret for build cache | no | — |
| unique-id | Unique ID for artifact name | no | — |
| use-repo-cache | Enable repo-level caching | — | true |
| repo-cache-key-suffix | String to append to repo-level cache key | — | 1 |
| repo-save-key-suffix | Save a repo-level cache entry different from the restored one | — | "" |
| cache-spack-lock | Cache spack.lock to speed up concretization | — | true |
| test-package-load | Run "spack load <package-name>" to verify setup_run_environment() does not fail | — | true |
| spack-test-flag | Flag to use for enabling install-time testing (argument to `spack install`) | — | --test root |
| save-repo-cache | Save repo cache (use-repo-cache must be true) | — | true |
| dependencies-only | Only install the requested spec's dependencies | — | false |
| package-only | Only install the requested spec (no deps; only useful for CI testing) | — | false |
| no-cached-roots | Don't install from build-cached packages for root specs | — | true |
Outputs
no outputs