Skip to content

Commit d7bfb6f

Browse files
committed
CI: add step to configure solr
1 parent d039ac3 commit d7bfb6f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/test-python-app.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828
image: solr:9
2929
ports:
3030
- 8983:8983
31-
command:
32-
- solr-precreate tester
3331

3432
memcached:
3533
image: memcached:1.6
@@ -59,6 +57,12 @@ jobs:
5957
python -m pip install --upgrade pip
6058
pip install -r requirements.txt
6159
pip install codecov
60+
- name: Configure solr
61+
run: |
62+
cd app
63+
python manage.py build_solr_schema --configure-directory=/solr/server/solr/tester/conf
64+
python manage.py build_solr_schema -r RELOAD_CORE
65+
python manage.py rebuild_index --noinput
6266
- name: Create and run migrations
6367
run: |
6468
cd app

0 commit comments

Comments
 (0)