dummy-agent-test.yml 1.4 KB

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