-
Notifications
You must be signed in to change notification settings - Fork 145
56 lines (47 loc) · 1.43 KB
/
check_cli.yml
File metadata and controls
56 lines (47 loc) · 1.43 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
name: Check CLI
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main, holoscan-sdk-lws2]
permissions:
contents: read
jobs:
check-cli-py:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Checkout Repository
uses: actions/checkout@v4
- name: Run Python tests
run: |
python -m unittest utilities.cli.tests.test_cli
python -m unittest utilities.cli.tests.test_container
python -m unittest utilities.cli.tests.test_util
python -m unittest utilities.cli.tests.test_system_check
python -m unittest utilities.cli.tests.test_status
./holohub setup --scripts template
python -m unittest utilities.cli.tests.test_cli
check-cli-ctest:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install CMake
run: |
sudo apt-get update
sudo apt-get install -y cmake
- name: Configure CMake with testing enabled
run: |
cmake -B build -DBUILD_TESTING=ON -DBUILD_HOLOHUB_TESTING=ON .
- name: Run CMake tests
run: |
cd build
ctest --verbose