mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
* Replace OpenDevin with OpenHands * Update CONTRIBUTING.md * Update README.md * Update README.md * update poetry lock; move opendevin folder to openhands * fix env var * revert image references in docs * revert permissions * revert permissions --------- Co-authored-by: Xingyao Wang <xingyao6@illinois.edu>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
# Workflow that uses the DummyAgent to run a simple task
|
|
name: Run E2E test with dummy agent
|
|
|
|
# Always run on "main"
|
|
# Always run on PRs
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Set up environment
|
|
run: |
|
|
curl -sSL https://install.python-poetry.org | python3 -
|
|
poetry install --without evaluation,llama-index
|
|
poetry run playwright install --with-deps chromium
|
|
wget https://huggingface.co/BAAI/bge-small-en-v1.5/raw/main/1_Pooling/config.json -P /tmp/llama_index/models--BAAI--bge-small-en-v1.5/snapshots/5c38ec7c405ec4b44b94cc5a9bb96e735b38267a/1_Pooling/
|
|
- name: Run tests
|
|
run: |
|
|
set -e
|
|
poetry run python openhands/core/main.py -t "do a flip" -d ./workspace/ -c DummyAgent
|
|
- name: Check exit code
|
|
run: |
|
|
if [ $? -ne 0 ]; then
|
|
echo "Test failed"
|
|
exit 1
|
|
else
|
|
echo "Test passed"
|
|
fi
|