-
Notifications
You must be signed in to change notification settings - Fork 13
64 lines (64 loc) · 1.5 KB
/
tests.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: cstock tests
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
max-parallel: 4
matrix:
db: [mysql]
python-version:
- 3.9
include:
- db: mysql
db_port: 3306
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: hunter2
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install pip==24.0
pip install -r requirements.txt
- name: Run Tests
env:
DB_USER: root
DB_PASSWORD: hunter2
GITHUB_TESTS: yes
run: >
python -Wa manage.py test
logistics.tests
logistics_project.apps.malawi.tests
logistics_project.apps.registration.tests
rapidsms
scheduler.tests