|
@ -6,6 +6,9 @@ jobs: |
|
|
build: |
|
|
build: |
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
defaults: |
|
|
|
|
|
run: |
|
|
|
|
|
working-directory: ./backend |
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
- uses: actions/checkout@v2 |
|
|
- uses: actions/checkout@v2 |
|
@ -16,29 +19,24 @@ jobs: |
|
|
- name: Install dependencies |
|
|
- name: Install dependencies |
|
|
run: | |
|
|
run: | |
|
|
python -m pip install --upgrade pip |
|
|
python -m pip install --upgrade pip |
|
|
pip install pipenv |
|
|
|
|
|
pipenv sync --dev |
|
|
|
|
|
|
|
|
pip install poetry |
|
|
|
|
|
poetry install |
|
|
- name: Run migrations |
|
|
- name: Run migrations |
|
|
run: | |
|
|
run: | |
|
|
pipenv run wait_for_db |
|
|
|
|
|
pipenv run migrate |
|
|
|
|
|
working-directory: ./backend |
|
|
|
|
|
|
|
|
poetry run task wait_for_db |
|
|
|
|
|
poetry run task migrate |
|
|
- name: Lint with flake8 |
|
|
- name: Lint with flake8 |
|
|
run: | |
|
|
run: | |
|
|
pipenv run flake8 |
|
|
|
|
|
working-directory: ./backend |
|
|
|
|
|
|
|
|
poetry run task flake8 |
|
|
- name: Lint with isort |
|
|
- name: Lint with isort |
|
|
run: | |
|
|
run: | |
|
|
pipenv run isort |
|
|
|
|
|
working-directory: ./backend |
|
|
|
|
|
|
|
|
poetry run task isort |
|
|
- name: Black |
|
|
- name: Black |
|
|
run: | |
|
|
run: | |
|
|
pipenv run black |
|
|
|
|
|
working-directory: ./backend |
|
|
|
|
|
|
|
|
poetry run task black |
|
|
- name: mypy |
|
|
- name: mypy |
|
|
run: | |
|
|
run: | |
|
|
pipenv run mypy |
|
|
|
|
|
|
|
|
poetry run task mypy |
|
|
- name: Run tests |
|
|
- name: Run tests |
|
|
run: | |
|
|
run: | |
|
|
pipenv run test |
|
|
|
|
|
working-directory: ./backend |
|
|
|
|
|
|
|
|
poetry run task test |