-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (55 loc) · 1.76 KB
/
test_all.yml
File metadata and controls
55 lines (55 loc) · 1.76 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: Run All Unit Tests with Coverage
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
compile_job:
name: test_all
runs-on: ubuntu-latest
container:
image: ghcr.io/lasp/adamant:0.1
options: --user root
steps:
- run: echo "Starting job triggered by a ${{ github.event_name }} event on a ${{ runner.os }} server hosted by GitHub."
- run: echo "Checking out ${{ github.repository }} on branch ${{ github.ref }}."
- name: Check out repository code
uses: actions/checkout@v4
with:
set-safe-directory: true
path: adamant-xmera-components
- name: Check out fp32-fsw-xmera code
uses: actions/checkout@v4
with:
set-safe-directory: true
repository: lasp/fp32-fsw-xmera
path: fp32-fsw-xmera
ref: develop
- name: Clone adamant repository
uses: actions/checkout@v4
with:
set-safe-directory: true
repository: lasp/adamant
path: adamant
- name: Clone Eigen with freestanding support
uses: actions/checkout@v4
with:
set-safe-directory: true
repository: lasp/eigen
path: eigen
ref: feature/freestanding
- name: Run all unit tests and coverage
run: bash adamant-xmera-components/env/github_run.sh "redo adamant-xmera-components/coverage_all"
- name: Archive logs for failed unit tests
if: always()
uses: actions/upload-artifact@v4
with:
name: test_logs
path: ${{ github.workspace }}/adamant-xmera-components/build
if-no-files-found: ignore
- run: echo "Finished with status - ${{ job.status }}."
if: always()