Skip to content

Bump the python group across 1 directory with 2 updates #12

Bump the python group across 1 directory with 2 updates

Bump the python group across 1 directory with 2 updates #12

Workflow file for this run

name: BinaryNinja Extension
on:
push:
branches:
- main
paths:
- "binaryninja_extension/**"
- "proto/**"
- ".github/workflows/binaryninja.yml"
pull_request:
branches: ["**"]
paths:
- "binaryninja_extension/**"
- "proto/**"
- ".github/workflows/binaryninja.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
binaryninja-test:
name: "Check generated protobuf and test BinaryNinja extension"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
python-version: '3.12'
enable-cache: false
activate-environment: true
- name: Install codegen and test dependencies
run: uv pip install -r binaryninja_extension/requirements-dev.txt pytest
- name: Regenerate quokka_pb2.py with the pinned toolchain
run: python binaryninja_extension/generate_proto.py
- name: Check the committed generated module is up to date
run: |
git diff --exit-code -- binaryninja_extension/bn_quokka/quokka_pb2.py || {
echo "::error::binaryninja_extension/bn_quokka/quokka_pb2.py is stale." \
"Regenerate it with binaryninja_extension/generate_proto.py" \
"using the grpcio-tools version pinned in binaryninja_extension/requirements-dev.txt."
exit 1
}
- name: Run extension tests
run: python -m pytest binaryninja_extension/tests/ -v