From 948bc98fa6c2cba0894fdaf5f1cd6739c63715c3 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Mon, 13 Dec 2021 19:44:15 +0100 Subject: 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 --- .github/workflows/unit_tests.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml index 585271e04c..3d7fc326f7 100644 --- a/.github/workflows/unit_tests.yaml +++ b/.github/workflows/unit_tests.yaml @@ -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 -- cgit v1.2.3-60-g2f50