-
Notifications
You must be signed in to change notification settings - Fork 743
62 lines (59 loc) · 2.03 KB
/
Copy pathaudit.yaml
File metadata and controls
62 lines (59 loc) · 2.03 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
56
57
58
59
60
61
62
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:
name: package-audits (${{ matrix.system.os }}, ${{ matrix.spack_ref || 'pinned' }})
runs-on: ${{ matrix.system.os }}
strategy:
fail-fast: false
matrix:
system:
- { os: windows-latest, shell: powershell }
- { os: ubuntu-latest, shell: bash }
- { os: macos-latest, shell: bash }
# An empty ref means the commit pinned in .ci/env, the others are the
# released versions we keep the packages repository compatible with
spack_ref: ['', 'v1.2.2', 'v1.1.1']
defaults:
run:
shell: ${{ matrix.system.shell }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
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
with:
ref: ${{ matrix.spack_ref }}
- 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