forked from nasa/fprime
-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (87 loc) · 2.8 KB
/
fpp-tests.yml
File metadata and controls
90 lines (87 loc) · 2.8 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: "FppTest"
on:
push:
branches: [ devel, release/** ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ devel, release/** ]
paths-ignore:
- 'docs/**'
- '**.md'
- '.github/actions/spelling/**'
- '.github/ISSUE_TEMPLATE/**'
# Cancel in-progress runs if a newer run is started on a given PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'devel') && !contains(github.ref, 'release/')}}
jobs:
fpptest:
name: Run FppTest
runs-on: ubuntu-22.04
steps:
- name: "Checkout F´ Repository"
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: "Install requirements.txt"
run: |
pip3 install -r ./requirements.txt
shell: bash
- name: "Generate UT build cache"
working-directory: ./FppTestProject
run: |
fprime-util generate --ut -DFPRIME_ENABLE_JSON_MODEL_GENERATION=ON
shell: bash
- name: "Build UTs"
working-directory: ./FppTestProject/FppTest
run: |
fprime-util build --ut
shell: bash
- name: "Run UTs"
working-directory: ./FppTestProject/FppTest
run: |
fprime-util check --pass-through --output-on-failure
shell: bash
- name: "Archive Logs"
uses: actions/upload-artifact@v4
if: always()
with:
name: FppTest-Logs
path: ./FppTestProject/build-fprime-automatic-native-ut/Testing/Temporary/*.log
retention-days: 5
fpptest-direct-port-calls:
name: Run FppTest (Direct Port Calls)
runs-on: ubuntu-22.04
steps:
- name: "Checkout F´ Repository"
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: "Install requirements.txt"
run: |
pip3 install -r ./requirements.txt
shell: bash
- name: "Generate UT build cache"
working-directory: ./FppTestProject
run: |
fprime-util generate --ut -DFPRIME_ENABLE_DIRECT_PORT_CALLS=ON -DFPRIME_ENABLE_JSON_MODEL_GENERATION=ON
shell: bash
- name: "Build UTs"
working-directory: ./FppTestProject/FppTest
run: |
fprime-util build --ut
shell: bash
- name: "Run UTs"
working-directory: ./FppTestProject/FppTest
run: |
fprime-util check --pass-through --output-on-failure
shell: bash
- name: "Archive Logs"
uses: actions/upload-artifact@v4
if: always()
with:
name: FppTest-DirectPortCalls-Logs
path: ./FppTestProject/build-fprime-automatic-native-ut/Testing/Temporary/*.log
retention-days: 5