test.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: Test
  2. on:
  3. push:
  4. branches: [main]
  5. pull_request:
  6. branches: [main]
  7. jobs:
  8. python-smoke:
  9. runs-on: ubuntu-latest
  10. steps:
  11. # actions/checkout@v6
  12. - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
  13. - name: Set up Python
  14. # actions/setup-python@v6
  15. uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
  16. with:
  17. python-version: "3.11"
  18. - name: Install dependencies
  19. run: pip install -r requirements.txt pytest
  20. - name: Run Python smoke tests
  21. run: python -m pytest tests -q
  22. web-build:
  23. runs-on: ubuntu-latest
  24. defaults:
  25. run:
  26. working-directory: web
  27. steps:
  28. # actions/checkout@v6
  29. - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
  30. - name: Set up Node.js
  31. # actions/setup-node@v6
  32. uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
  33. with:
  34. node-version: "20"
  35. cache: "npm"
  36. cache-dependency-path: web/package-lock.json
  37. - name: Install dependencies
  38. run: npm ci
  39. - name: Build
  40. run: npm run build