dummy-agent-test.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Workflow that uses the DummyAgent to run a simple task
  2. name: Run E2E test with dummy agent
  3. # Always run on "main"
  4. # Always run on PRs
  5. on:
  6. push:
  7. branches:
  8. - main
  9. pull_request:
  10. jobs:
  11. test:
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v4
  15. - name: Set up Python
  16. uses: actions/setup-python@v5
  17. with:
  18. python-version: '3.11'
  19. - name: Set up environment
  20. run: |
  21. curl -sSL https://install.python-poetry.org | python3 -
  22. poetry install --without evaluation,llama-index
  23. poetry run playwright install --with-deps chromium
  24. 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/
  25. - name: Run tests
  26. run: |
  27. set -e
  28. poetry run python opendevin/core/main.py -t "do a flip" -d ./workspace/ -c DummyAgent
  29. - name: Check exit code
  30. run: |
  31. if [ $? -ne 0 ]; then
  32. echo "Test failed"
  33. exit 1
  34. else
  35. echo "Test passed"
  36. fi