You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
875 B

3 years ago
  1. name: doccano CI
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. defaults:
  7. run:
  8. working-directory: ./backend
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: Set up Python 3.8
  12. uses: actions/setup-python@v2
  13. with:
  14. python-version: 3.8
  15. - name: Install dependencies
  16. run: |
  17. python -m pip install --upgrade pip
  18. pip install poetry
  19. poetry install
  20. - name: Run migrations
  21. run: |
  22. poetry run task wait_for_db
  23. poetry run task migrate
  24. - name: Lint with flake8
  25. run: |
  26. poetry run task flake8
  27. - name: Lint with isort
  28. run: |
  29. poetry run task isort
  30. - name: Black
  31. run: |
  32. poetry run task black
  33. - name: mypy
  34. run: |
  35. poetry run task mypy
  36. - name: Run tests
  37. run: |
  38. poetry run task test