Create django.yml

Swadhin Biswas committed 2 years ago
36c24b2
1 parent 787f1f7
commit 36c24b2
1 file changed
+30 -0
Showing 1 changed file+30-0
▼.github/workflows/django.yml
+30-0
1
+name: Django CI
2
+
3
+on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+jobs:
10
+ build:
11
+
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ max-parallel: 4
15
+ matrix:
16
+ python-version: [3.7, 3.8, 3.9]
17
+
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - name: Set up Python ${{ matrix.python-version }}
21
+ uses: actions/setup-python@v3
22
+ with:
23
+ python-version: ${{ matrix.python-version }}
24
+ - name: Install Dependencies
25
+ run: |
26
+ python -m pip install --upgrade pip
27
+ pip install -r requirements.txt
28
+ - name: Run Tests
29
+ run: |
30
+ python manage.py test
0
31