diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2023-07-13 12:47:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 06:47:47 -0400 |
commit | 3261889e3a93ab942fd1776188c7ad31524574b4 (patch) | |
tree | b26934b49f1ae11a0ee8e42b6f17c80e49404121 /.github | |
parent | 161b30a32f2ec8f0c6b53d3171089eb17f8217ba (diff) | |
download | spack-3261889e3a93ab942fd1776188c7ad31524574b4.tar.gz spack-3261889e3a93ab942fd1776188c7ad31524574b4.tar.bz2 spack-3261889e3a93ab942fd1776188c7ad31524574b4.tar.xz spack-3261889e3a93ab942fd1776188c7ad31524574b4.zip |
spack audit: allow skipping version checks from package.py (#28372)
A few packages have version directives evaluated
within if statements, conditional on the value of
`platform.platform()`.
Sometimes there are no cases for e.g. platform=darwin and that
causes a lot of spurious failures with version existence
audits.
This PR allows expressing conditions to skip version
existence checks in audits and avoid these spurious reports.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/audit.yaml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index 9ea27e2834..edd3c9c62e 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -17,7 +17,10 @@ concurrency: jobs: # Run audits on all the packages in the built-in repository package-audits: - runs-on: ubuntu-latest + runs-on: ${{ matrix.operating_system }} + strategy: + matrix: + operating_system: ["ubuntu-latest", "macos-latest"] steps: - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # @v2 - uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # @v2 @@ -41,4 +44,4 @@ jobs: - uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # @v2.1.0 if: ${{ inputs.with_coverage == 'true' }} with: - flags: unittests,linux,audits + flags: unittests,audits |