-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (25 loc) · 956 Bytes
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on:
pull_request:
branches: [ "develop", "main" ]
jobs:
django-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build docker
run: docker compose up -d --build
- name: Run mypy
run: docker compose run django poetry run mypy --config mypy.ini budget_management/
- name: Run isort
run: docker compose run django poetry run isort budget_management/ --check
- name: Run black
run: docker compose run django poetry run black budget_management/ --check
- name: Run flake8
run: docker compose run django poetry run flake8
- name: Migration test database
run: docker compose run django poetry run python manage.py migrate
- name: Run Test
run: |
docker compose run django poetry run coverage run manage.py test &&
docker compose run django poetry run coverage report --fail-under=80