-
Notifications
You must be signed in to change notification settings - Fork 42
52 lines (48 loc) · 1.99 KB
/
integration-tests.yml
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
name: Integration Tests
on: [pull_request, push]
jobs:
fprime-integration:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
fprime-version: ["NASA-v1.5.3", "v2.0.0", "v3.0.0", "devel"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip urllib3 setuptools_scm
- name: clone fprime and gps-tutorial
run: |
git clone -b ${{ matrix.fprime-version }} https://github.com/nasa/fprime.git
git clone --recurse-submodules https://github.com/fprime-community/gps-tutorial.git
pip install -r fprime/requirements.txt || true # Attempt to install fprime package when available
- name: Generate correct fprime version in gps-tutorial
working-directory: gps-tutorial
run: git submodule update --recursive
- name: Install Current fpp-tools
run: pip install .
# 0x72ad3277 is Fw/Types/Assert.cpp, a file that should be consistent across releases
- name: Test generation and building on Ref
working-directory: fprime/Ref
run: |
fprime-util generate
fprime-util build
fprime-util hash-to-file 0x72ad3277
- name: Test generation and building on gps-tutorial
working-directory: gps-tutorial/GpsApp
run: |
fprime-util generate
fprime-util build
fprime-util hash-to-file 0x72ad3277
- name: Test special generation on Ref
working-directory: fprime/Ref
run: |
fprime-util generate --build-cache ./special-cache --ut -DFPRIME_ENABLE_AUTOCODER_UTS=OFF
fprime-util build --build-cache ./special-cache
fprime-util hash-to-file 0x2ed4bda6 --build-cache ./special-cache