Skip to content

Commit 34440d7

Browse files
authored
Merge pull request #341 from ARM-software/ci
Add smoke tests to precommit ci
2 parents df2eceb + 5a086e6 commit 34440d7

3 files changed

Lines changed: 13 additions & 28 deletions

File tree

.github/workflows/precommit.yml

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ on:
2424
branches: [main]
2525
paths:
2626
- "ML-Frameworks/pytorch-aarch64/**"
27+
- ".github/**"
2728
pull_request:
2829
types: [opened, synchronize, reopened]
2930
paths:
3031
- "ML-Frameworks/pytorch-aarch64/**"
32+
- ".github/**"
3133
#* allow manual trigger of workflow when needed.
3234
workflow_dispatch:
3335

@@ -45,7 +47,7 @@ jobs:
4547
strategy:
4648
matrix:
4749
config: [
48-
{ name: c7g, label: ah-ubuntu_22_04-c7g_4x-50, threading: OMP, toolset: gcc }
50+
{ name: c7g, label: ah-ubuntu_22_04-c7g_4x-50 }
4951
]
5052

5153
runs-on: ${{ matrix.config.label }}
@@ -54,43 +56,24 @@ jobs:
5456
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5557
with:
5658
path: Tool-Solutions
57-
58-
# Note: This will create a github actions cache
59-
- name: Get latest CMake and Ninja
60-
uses: lukka/get-cmake@56d043d188c3612951d8755da8f4b709ec951ad6 # v3.31.6
61-
with:
62-
cmakeVersion: 3.31.0
63-
ninjaVersion: 1.12.0
64-
65-
- name: Install openmp
66-
run: |
67-
sudo apt install -y libomp-dev
68-
69-
- name: Install gcc
70-
run: |
71-
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
72-
sudo apt update -y
73-
sudo apt install -y g++-11
74-
75-
- name: setup python
76-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
77-
with:
78-
python-version: '3.10'
79-
8059
- name: Set up Docker
8160
uses: docker/setup-docker-action@v4
8261

8362
- name: Build Tool-Solutions PyTorch
63+
working-directory: ${{ github.workspace }}/Tool-Solutions/ML-Frameworks/pytorch-aarch64
8464
run: ${{ github.workspace }}/Tool-Solutions/ML-Frameworks/pytorch-aarch64/build.sh
85-
working-directory: ${{ github.workspace }}/Tool-Solutions
65+
env:
66+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8667

68+
- name: Run smoke tests
69+
run: docker run --rm toolsolutions-pytorch:latest ./test.sh
8770

88-
# This job adds a check named "CI AArch64" that represents overall
71+
# This job adds a check named "Precommit-status" that represents overall
8972
# workflow status and can be used in branch rulesets
9073
status:
9174
needs: build-and-test
9275
runs-on: ubuntu-latest
93-
name: "CI AArch64"
76+
name: "Precommit-status"
9477
steps:
9578
- name: Print success
9679
run: echo Success

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ao/
2-
venv/
2+
venv*/
33
__pycache__/
44

55
build*.log
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ssd_resnet*/
2+
dev-v2.0.json

0 commit comments

Comments
 (0)