2
0

ci.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: CI
  2. on:
  3. push:
  4. pull_request:
  5. concurrency:
  6. group: ${{ github.workflow }}-${{ github.ref }}
  7. cancel-in-progress: true
  8. jobs:
  9. lint-server:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v6
  13. - uses: actions/setup-python@v4
  14. with:
  15. python-version: '3.12'
  16. cache: 'pip'
  17. cache-dependency-path: 'requirements/*.txt'
  18. - run: pip install -r requirements/development.txt
  19. - run: make lint-server
  20. lint-client:
  21. runs-on: ubuntu-latest
  22. steps:
  23. - uses: actions/checkout@v6
  24. - uses: actions/setup-node@v6
  25. with:
  26. node-version-file: '.nvmrc'
  27. - run: npm ci
  28. - run: make lint-client
  29. test-server:
  30. runs-on: ubuntu-latest
  31. env:
  32. DJANGO_SETTINGS_MODULE: bakerydemo.settings.test
  33. steps:
  34. - uses: actions/checkout@v6
  35. - uses: actions/setup-python@v4
  36. with:
  37. python-version: '3.12'
  38. cache: 'pip'
  39. cache-dependency-path: 'requirements/*.txt'
  40. - run: pip install -r requirements/development.txt
  41. - run: ./manage.py check
  42. - run: ./manage.py makemigrations --check --noinput
  43. - run: ./manage.py test