Fix not getting python output when running as plugin; fix litellm con… #372
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |