Skip to content

Commit 194515a

Browse files
Added GitHub Actions
1 parent 0d82077 commit 194515a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/django.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Django CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
7+
pull_request:
8+
branches: [ "master" ]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python 3.9
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: 3.9
21+
- name: Install Dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -r requirements.txt
25+
- name: Run migrations
26+
run: |
27+
python manage.py makemigrations
28+
python manage.py migrate
29+
- name: Lint with flake8
30+
run: |
31+
flake8
32+
- name: Run Tests
33+
run: |
34+
python manage.py test

0 commit comments

Comments
 (0)