Skip to content

[NHUB-540] Add async ResourceModel for ContentAPI items #90

[NHUB-540] Add async ResourceModel for ContentAPI items

[NHUB-540] Add async ResourceModel for ContentAPI items #90

Workflow file for this run

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