-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.09 KB
/
django.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
36
37
38
39
40
41
42
name: Django CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
strategy:
matrix:
include:
- django-version: "3.2.10"
python-version: "3.8.6"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Use local settings
run: cp financial_server/local_settings.py.ci financial_server/local_settings.py
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install Django==${{ matrix.django-version }} times da-vinci pillow redis shortuuid
env:
REDIS_HOST: localhost
REDIS_PORT: 6379
- name: Run Tests
run: |
python manage.py test --parallel