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.

29 lines
599 B

  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: ./app
  22. - name: Run tests
  23. run: |
  24. pipenv run test
  25. working-directory: ./app