Skip to content

Commit 14ac792

Browse files
committed
Add CI for the GitHub side of things.
The GitHub CI should try to run the component and its tests, before packaging it.
1 parent 4170540 commit 14ac792

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
3+
name: Python build
4+
5+
# Controls when the action will run. Triggers the workflow on:
6+
# * push on any branch.
7+
# * tag creation for tags beginning with a 'v'
8+
# * pull requests
9+
on:
10+
push:
11+
branches: ["*"]
12+
tags: ["v*"]
13+
pull_request:
14+
types: [opened, reopened, synchronize]
15+
branches: ["*"]
16+
17+
jobs:
18+
build-package:
19+
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 20
22+
23+
steps:
24+
- uses: actions/checkout@v6
25+
26+
- name: Obtain prerequisite build tool
27+
run: |
28+
pip install 'capstone<5'
29+
30+
- name: Run tests
31+
run: |
32+
make tests
33+
34+
- name: Build package
35+
run: |
36+
make package
37+
38+
- uses: actions/upload-artifact@v6
39+
with:
40+
name: Package
41+
path: dist

0 commit comments

Comments
 (0)