File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Django application
2
2
on : [push]
3
3
jobs :
4
+ docker_build :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+ - uses : actions/checkout@v2
8
+ - name : Build docker
9
+ run : docker-compose build
10
+ - name : Type check
11
+ run : docker-compose run django mypy styleguide_example/
12
+ - name : Run migrations
13
+ run : docker-compose run django python manage.py migrate
14
+ - name : Run tests
15
+ run : docker-compose run django py.test
16
+
4
17
build :
5
18
runs-on : ubuntu-latest
6
19
services :
32
45
run : python manage.py migrate
33
46
- name : Run tests
34
47
run : py.test
48
+
35
49
deploy_to_heroku :
36
50
runs-on : ubuntu-latest
37
51
needs : build
Original file line number Diff line number Diff line change 1
1
# This docker file is used for local development via docker-compose
2
2
# Creating image based on official python3 image
3
- FROM python:3.10.2
3
+ FROM python:3.10
4
4
5
5
# Fix python printing
6
6
ENV PYTHONUNBUFFERED 1
Original file line number Diff line number Diff line change 1
1
# This docker file is used for production
2
2
# Creating image based on official python3 image
3
- FROM python:3.10.2
3
+ FROM python:3.10
4
4
5
5
# Installing all python dependencies
6
6
ADD requirements/ requirements/
You can’t perform that action at this time.
0 commit comments