Skip to content

Commit 0298549

Browse files
committed
ci: add test step
1 parent 142a166 commit 0298549

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build-and-upload-aml.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,21 @@ jobs:
1818
- name: Install build dependencies
1919
run: |
2020
sudo apt-get update
21-
sudo apt-get install -y build-essential cmake ninja-build zip python3 python3-pip jq nodejs npm unzip
21+
sudo apt-get install -y build-essential cmake ninja-build python3 python3-pip jq
2222
2323
- name: Configure CMake
2424
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
2525

2626
- name: Build
2727
run: cmake --build build -- -j$(nproc)
2828

29+
- name: Run test suite
30+
run: |
31+
set -euo pipefail
32+
python3 -m pip install --upgrade pip
33+
python3 -m pip install -r requirements.txt
34+
python3 test/run_all_tests.py
35+
2936
- name: Collect AMLs into per-platform directories
3037
id: prepare
3138
run: |
@@ -87,4 +94,4 @@ jobs:
8794
uses: actions/upload-artifact@v4
8895
with:
8996
name: ${{ matrix.platform }}
90-
path: artifacts/${{ matrix.platform }}
97+
path: aml-all/artifacts/${{ matrix.platform }}

0 commit comments

Comments
 (0)