forked from spack/spack-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (52 loc) · 1.66 KB
/
audit.yaml
File metadata and controls
55 lines (52 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: audit
on:
workflow_call:
inputs:
python_version:
required: true
type: string
concurrency:
group: audit-${{inputs.python_version}}-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
cancel-in-progress: true
jobs:
# Run audits on all the packages in the built-in repository
package-audits:
runs-on: ${{ matrix.system.os }}
strategy:
matrix:
system:
- { os: windows-latest, shell: powershell }
- { os: ubuntu-latest, shell: bash }
- { os: macos-latest, shell: bash }
defaults:
run:
shell: ${{ matrix.system.shell }}
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548
with:
python-version: ${{inputs.python_version}}
- name: Install Python packages
run: python -m pip install --upgrade pytest
- name: Setup for Windows run
if: runner.os == 'Windows'
run: |
python -m pip install --upgrade pywin32
- uses: ./.github/actions/checkout-spack
- name: Package audits
if: ${{ runner.os != 'Windows' }}
run: |
. ./spack-core/share/spack/setup-env.sh
spack -d audit packages
spack -d audit configs
spack -d audit externals
- name: Package audits
if: ${{ runner.os == 'Windows' }}
run: |
./spack-core/share/spack/setup-env.ps1
spack -d audit packages
./.ci/validate_last_exit.ps1
spack -d audit configs
./.ci/validate_last_exit.ps1
spack -d audit externals
./.ci/validate_last_exit.ps1