forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (47 loc) · 1.55 KB
/
Copy pathintegration.yml
File metadata and controls
51 lines (47 loc) · 1.55 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
name: integration tests
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- develop
- releases/**
concurrency:
group: intergrations-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
cancel-in-progress: true
jobs:
scan:
runs-on: ubuntu-latest
outputs:
packages: ${{ steps.scan.outputs.packages }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
- name: "Add Integration test repo"
run: |
. share/spack/setup-env.sh
spack repo add https://github.com/johnwparent/test-spack-smoke-repo.git
- name: "List repo packages"
id: scan
run: |
. share/spack/setup-env.sh
packages_list="$(spack list --repo smoketest | python3 -c "import sys; print([f'"{x}"' for x in sys.stdin.read().split('\n') if x])")"
echo "packages=${packages_list}" >> "$GITHUB_OUTPUT"
run:
needs: [scan]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
package: ${{ fromJSON(needs.scan.outputs.packages) }} # list of spack intergration test packages to run
fail-fast: true
steps:
- name: "Add Integration test repo"
run: |
. share/spack/setup-env.sh
spack repo add https://github.com/johnwparent/test-spack-smoke-repo.git
- name: "Spack install"
run: |
. share/spack/setup-env.sh
spack install ${{ matrix.package }}