ci: verify AI code review #22
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
name: AI Code Review | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
codex-review: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' # Specify the Python version you want | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install openai requests # Install both openai and requests | |
- name: Run Codex for Code Review | |
run: | | |
python review_code.py | |
env: | |
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} |