-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (42 loc) · 1.11 KB
/
unit.yml
File metadata and controls
50 lines (42 loc) · 1.11 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
name: Unit Tests
on:
push:
branches:
- '*'
paths-ignore:
- 'README.md'
- 'docs/**'
pull_request:
branches:
- '*'
paths-ignore:
- 'README.md'
- 'docs/**'
jobs:
unit-test:
name: Unit Tests
runs-on: buildjet-2vcpu-ubuntu-2204-arm
strategy:
matrix:
include:
- container: ghcr.io/viam-modules/csi-camera/viam-cpp-base-jetson:0.0.6
TARGET: jetson
container:
image: ${{ matrix.container }}
options: --platform linux/arm64
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set environment variables
run: |
echo "TARGET=${{ matrix.TARGET }}" >> $GITHUB_ENV
echo "META_PATH=${{ matrix.META_PATH }}" >> $GITHUB_ENV
- name: Install module dependencies
run: make dep
- name: Build viam-csi binary
run: make build
- name: Run unit tests
run: |
export VIAM_CSI_DEVICE=${{ matrix.TARGET }}
export VIAM_CSI_TEST_MODE=1
ctest --test-dir build --rerun-failed --output-on-failure -VV