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.

44 lines
956 B

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