Skip to content

Commit f381e67

Browse files
committed
actions: Add backend HW verification tests
Run the backend verification tests on every PR on the libpisp repo. Currently some tests are failing, but they will be updated shortly. Signed-off-by: Naushir Patuck <[email protected]>
1 parent 89a114b commit f381e67

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: pisp verification tests
2+
3+
on:
4+
workflow_dispatch:
5+
6+
pull_request:
7+
branches: [ main ]
8+
9+
env:
10+
BE_TEST_DIR: "${{github.workspace}}/../be_test"
11+
LKG_DIR: "${{github.workspace}}/../lkg"
12+
TESTS_DIR: "/home/pi/pisp_tests"
13+
14+
jobs:
15+
build-test:
16+
17+
runs-on: [ self-hosted, pi5 ]
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
with:
22+
fetch-depth: 1
23+
clean: true
24+
25+
- name: Configure meson
26+
run: meson setup build -Dbuildtype=debug
27+
timeout-minutes: 5
28+
29+
- name: Build
30+
run: ninja -C build
31+
timeout-minutes: 10
32+
33+
run-test:
34+
35+
runs-on: [ self-hosted, pi5 ]
36+
needs: build-test
37+
38+
steps:
39+
- name: Run verification tests
40+
run: LD_LIBRARY_PATH=${{github.workspace}}/build/src LIBPISP_BE_CONFIG_FILE="${{github.workspace}}/src/libpisp/backend/backend_default_config.json" ${{env.BE_TEST_DIR}}/run_be_tests.py --hw --logall --test ${{env.BE_TEST_DIR}}/be_test ${{env.TESTS_DIR}}/back_end
41+
timeout-minutes: 20

0 commit comments

Comments
 (0)