-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (55 loc) · 1.93 KB
/
ci.yml
File metadata and controls
69 lines (55 loc) · 1.93 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
63
64
65
66
67
68
69
name: CI
on:
push:
branches: ["**"]
tags-ignore: ["**"] # tags are handled by release.yml
pull_request:
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup build environment
uses: ./.github/actions/setup-build-env
- name: Fetch dependencies
if: hashFiles('**/.deps_config.ini') != ''
run: FoBiS.py fetch
- name: Run tests with coverage
id: cov
uses: ./.github/actions/run-coverage-analysis
regression-prism-cpu:
# PRISM CPU regression suite. Reference baseline for the
# forest-of-trees migration (issue #10): every structural change
# must leave this suite green.
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup build environment
uses: ./.github/actions/setup-build-env
- name: Fetch dependencies
if: hashFiles('**/.deps_config.ini') != ''
run: FoBiS.py fetch
- name: Run PRISM CPU regression
# No HDF5_PREFIX needed: fobos resolves HDF5 paths from its default
# varset (local_gnu -> lib/hdf5/develop/gnu/14.2.0).
run: ./src/tests/prism/regression/run.sh cpu
- name: Upload regression work outputs
# Runs even when the regression step fails — the produced digest and
# residuals are how a golden is (re)captured from a known-good CI run,
# and how a failing run is diagnosed. work-*/ is gitignored scratch on
# the runner, so without this upload the outputs are lost with the job.
if: always()
uses: actions/upload-artifact@v4
with:
name: prism-regression-cpu-work
path: |
src/tests/prism/regression/**/work-cpu/digest.txt
src/tests/prism/regression/**/work-cpu/*-residuals.dat
if-no-files-found: warn
retention-days: 14