Add a CI job to audit all the packages in the built-in repository (#27945)
* Add a CI job to audit all the packages in the built-in repository * flecsi: fixed typo for dependency on legion * py-pythonqwt: fix a typo in variant name * sollve: removed a conflict with a non-existing variant * acts: fixed use of wrong variant in dd4hep Also removed duplicated variant declaration in dd4hep * aoflagger: update variant of a dependency Issues introduced indirectly in #22925 * camellia: removed unused variant Issue introduced indirectly in #26150 * cbtf-*: remove cti variants and dependency on mrnet+cti Issue introduced in #14178 * flecsale: update variants to match flecsi Issue introduced in #11679 * grnboost: fixed issue with non-existing variant in a dependency This package possibly never worked since #8763 * nalu: fixed issue with non-existing variant in a dependency * open-iscsi: fixed issue with non-existing variant in a dependency * openspeedshop-*: remove use of non-existing mrnet+cti variant * percept: fixed issue with non-existing variant in a dependency * phyluce: fixed issue with non-existing variant in a dependency Issue introduced in #12952 * phyluce: fixed issue with non-existing variant in a dependency Issue introduced in #22340
This commit is contained in:

committed by
GitHub

parent
28d31316b7
commit
948bc98fa6
29
.github/workflows/unit_tests.yaml
vendored
29
.github/workflows/unit_tests.yaml
vendored
@@ -314,3 +314,32 @@ jobs:
|
||||
with:
|
||||
files: ./coverage.xml
|
||||
flags: unittests,macos
|
||||
|
||||
# Run audits on all the packages in the built-in repository
|
||||
package-audits:
|
||||
needs: [ validate, style, changes ]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # @v2
|
||||
- uses: actions/setup-python@dc73133d4da04e56a135ae2246682783cc7c7cb6 # @v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install Python packages
|
||||
run: |
|
||||
pip install --upgrade pip six setuptools pytest codecov coverage[toml]
|
||||
- name: Package audits (with coverage)
|
||||
if: ${{ needs.changes.outputs.with_coverage == 'true' }}
|
||||
run: |
|
||||
. share/spack/setup-env.sh
|
||||
coverage run $(which spack) audit packages
|
||||
coverage combine
|
||||
coverage xml
|
||||
- name: Package audits (wwithout coverage)
|
||||
if: ${{ needs.changes.outputs.with_coverage == 'false' }}
|
||||
run: |
|
||||
. share/spack/setup-env.sh
|
||||
$(which spack) audit packages
|
||||
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # @v2.1.0
|
||||
if: ${{ needs.changes.outputs.with_coverage == 'true' }}
|
||||
with:
|
||||
flags: unittests,linux,audits
|
||||
|
Reference in New Issue
Block a user