[NHUB-540] Add async ResourceModel for ContentAPI items #89
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |