Skip to content

Commit 56facb5

Browse files
authored
Merge pull request #13 from All-Hands-AI/openhands/add-binary-build-workflow
Add GitHub workflow to test binary executable build
2 parents bfb71b9 + 3a25c37 commit 56facb5

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/build-test.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Workflow that builds and tests the binary executable
2+
name: Build and Test Binary
3+
4+
# Run on pushes to main branch and all pull requests to ensure binary builds work correctly
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
11+
# Cancel previous runs if a new commit is pushed
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build-and-test-binary:
18+
name: Build and test binary executable
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
27+
- name: Set up Python
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: 3.12
31+
32+
- name: Install uv
33+
uses: astral-sh/setup-uv@v3
34+
with:
35+
version: "latest"
36+
37+
- name: Install dependencies
38+
run: |
39+
uv sync --dev
40+
41+
- name: Build and test binary executable
42+
run: |
43+
./build.sh --install-pyinstaller

0 commit comments

Comments
 (0)