tests.yml 694 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Tests
  2. on:
  3. push:
  4. branches: [ main ]
  5. pull_request:
  6. branches: [ main ]
  7. jobs:
  8. test:
  9. runs-on: ubuntu-24.04
  10. env:
  11. PYTHONPATH: ${{ github.workspace }}:${{ github.workspace }}/web
  12. steps:
  13. - name: Checkout code
  14. uses: actions/checkout@v4
  15. - name: Set up Python
  16. uses: actions/setup-python@v5
  17. with:
  18. python-version: '3.10'
  19. - name: Install dependencies
  20. run: |
  21. python -m pip install --upgrade pip
  22. pip install pytest
  23. pip install -r tests/requirements.txt
  24. pip install -r web/requirements.txt
  25. - name: Run tests
  26. run: |
  27. pytest tests/ -v --tb=short