dummy-agent-test.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: Run E2E test with dummy agent
  2. concurrency:
  3. group: ${{ github.workflow }}-${{ github.ref }}
  4. cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
  5. on:
  6. push:
  7. branches:
  8. - main
  9. pull_request:
  10. env:
  11. PERSIST_SANDBOX : "false"
  12. jobs:
  13. test:
  14. runs-on: ubuntu-latest
  15. steps:
  16. - uses: actions/checkout@v4
  17. - name: Set up Python
  18. uses: actions/setup-python@v5
  19. with:
  20. python-version: '3.11'
  21. - name: Set up environment
  22. run: |
  23. curl -sSL https://install.python-poetry.org | python3 -
  24. poetry install --without evaluation
  25. poetry run playwright install --with-deps chromium
  26. 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/
  27. - name: Run tests
  28. run: |
  29. set -e
  30. poetry run python opendevin/core/main.py -t "do a flip" -d ./workspace/ -c DummyAgent
  31. - name: Check exit code
  32. run: |
  33. if [ $? -ne 0 ]; then
  34. echo "Test failed"
  35. exit 1
  36. else
  37. echo "Test passed"
  38. fi