Skip to content

Commit

Permalink
Fix pr #5232: Fix issue #5219: Feature: PR Review
Browse files Browse the repository at this point in the history
  • Loading branch information
openhands-agent committed Nov 26, 2024
1 parent e294f76 commit f8fc382
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/openhands-resolver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,22 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Get latest versions and create requirements.txt
- name: Install poetry
run: |
python -m pip index versions openhands-ai > openhands_versions.txt
OPENHANDS_VERSION=$(head -n 1 openhands_versions.txt | awk '{print $2}' | tr -d '()')
echo "openhands-ai==${OPENHANDS_VERSION}" >> requirements.txt
cat requirements.txt
python -m pip install --upgrade pip
pip install poetry
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}/lib/python3.12/site-packages/*
key: ${{ runner.os }}-pip-openhands-resolver-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-openhands-resolver-${{ hashFiles('requirements.txt') }}
- name: Install OpenHands from PR branch
run: |
poetry install
- name: Check required environment variables
env:
Expand Down Expand Up @@ -113,11 +109,7 @@ jobs:
- name: Install OpenHands
run: |
python -m pip install --upgrade pip
if [[ "${{ github.event.label.name }}" == "review-pr" ]]; then
pip install git+https://github.com/all-hands-ai/openhands.git
else
python -m pip install --upgrade -r requirements.txt
fi
python -m pip install --upgrade -r requirements.txt
- name: Review PR
env:
Expand Down

0 comments on commit f8fc382

Please sign in to comment.