summaryrefslogtreecommitdiff
path: root/.github/workflows/audit.yaml
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2023-09-29 10:24:42 +0200
committerGitHub <noreply@github.com>2023-09-29 10:24:42 +0200
commit210d221357abdd1c91e01f93bdee9444fe423eab (patch)
treefcde81f91b75c83ca3bfe045375f14775ee018c3 /.github/workflows/audit.yaml
parentc9ef5c8152149c31aa91a159fdd603dcfec65d8d (diff)
downloadspack-210d221357abdd1c91e01f93bdee9444fe423eab.tar.gz
spack-210d221357abdd1c91e01f93bdee9444fe423eab.tar.bz2
spack-210d221357abdd1c91e01f93bdee9444fe423eab.tar.xz
spack-210d221357abdd1c91e01f93bdee9444fe423eab.zip
Test package detection in a systematic way (#18175)
This PR adds a new audit sub-command to check that detection of relevant packages is performed correctly in a few scenarios mocking real use-cases. The data for each package being tested is in a YAML file called detection_test.yaml alongside the corresponding package.py file. This is to allow encoding detection tests for compilers and other widely used tools, in preparation for compilers as dependencies.
Diffstat (limited to '.github/workflows/audit.yaml')
-rw-r--r--.github/workflows/audit.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml
index ca9c02e62d..3d8e1f10ae 100644
--- a/.github/workflows/audit.yaml
+++ b/.github/workflows/audit.yaml
@@ -34,6 +34,7 @@ jobs:
run: |
. share/spack/setup-env.sh
coverage run $(which spack) audit packages
+ coverage run $(which spack) audit externals
coverage combine
coverage xml
- name: Package audits (without coverage)
@@ -41,6 +42,7 @@ jobs:
run: |
. share/spack/setup-env.sh
$(which spack) audit packages
+ $(which spack) audit externals
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # @v2.1.0
if: ${{ inputs.with_coverage == 'true' }}
with: