Skip to content

Commit 040c301

Browse files
committed
Add test for the current action
1 parent 607134f commit 040c301

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test Binary Ninja Setup
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# workflow_dispatch:
8+
9+
jobs:
10+
test_binaryninja_api:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Install uv
14+
uses: astral-sh/setup-uv@v5
15+
16+
- name: Setup Binary Ninja
17+
id: setup_bn # Add an id to reference outputs
18+
uses: ${{ github.repository }}@${{ github.sha }}
19+
with:
20+
version: '4.2.6455'
21+
password: ${{ secrets.BN_PASSWORD_426455 }}
22+
23+
- name: Run Binary Ninja Python API check
24+
run: |
25+
uv venv --python=3.10
26+
uv run python ${{ steps.setup_bn.outputs.install-path }}/scripts/install_api.py
27+
uv run python -c 'import binaryninja as bn; assert bn._init_plugins() is None; assert bn.core_ui_enabled() is not None; print("BN API check PASSED!!")'

0 commit comments

Comments
 (0)