-
Notifications
You must be signed in to change notification settings - Fork 83
51 lines (43 loc) · 1.19 KB
/
test-instance.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
name: "Spawn Test Instance"
on: [push, pull_request]
jobs:
test_instance:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
env:
SKIP_SERVER_INSTALL: true
services:
mongodb:
image: mongo:6
ports:
- 27017:27017
redis:
image: redis:alpine
ports:
- 6379:6379
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.22
ports:
- 9200:9200
env:
discovery.type: single-node
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: ./scripts/tests_setup
- name: Install dependencies
working-directory: ./tests/test_instance/server
run: |
pip install -U pip wheel setuptools
pip install -r requirements.txt
- name: Prepare instance
working-directory: ./tests/test_instance/server
run: |
python manage.py app:initialize_data
python manage.py users:create -u admin -p admin -e [email protected] --admin
python manage.py data:upgrade
python manage.py schema:migrate