Skip to content

Fix not getting python output when running as plugin; fix litellm con… #370

Fix not getting python output when running as plugin; fix litellm con…

Fix not getting python output when running as plugin; fix litellm con… #370

Workflow file for this run

# TODO: add windows
name: ci
env:
R2V: 5.9.0
on:
push:
pull_request:
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Installing radare2
run: |
wget "https://github.com/radareorg/radare2/releases/download/${R2V}/radare2_${R2V}_amd64.deb"
wget "https://github.com/radareorg/radare2/releases/download/${R2V}/radare2-dev_${R2V}_amd64.deb"
sudo dpkg -i "radare2_${R2V}_amd64.deb"
sudo dpkg -i "radare2-dev_${R2V}_amd64.deb"
- name: Setting up the Python virtual environment
run: |
python -m venv venv
. venv/bin/activate
pip install pylint
- name: Install Python dependencies
run: |
. venv/bin/activate
pip install .
- name: Linting
run: |
. venv/bin/activate
make cilint
- name: Running r2ai from the shell
run: |
. venv/bin/activate
python -m r2ai.cli -h
- name: Running r2ai from r2pipe
run: |
. venv/bin/activate
r2 -q -c '#!pipe python -m r2ai.cli -h' /bin/ls
- name: Running r2ai from r2
run: |
. venv/bin/activate
r2 -q -i r2ai/plugin.py -c r2ai /bin/ls