-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Add SortingHat service to release workflow
SortingHat service was missing on the release workflow maiking it to fail. Signed-off-by: Santiago Dueñas <[email protected]>
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,13 @@ jobs: | |
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
|
||
redis: | ||
image: redis | ||
ports: | ||
- 6379:6379 | ||
options: --health-cmd="redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
name: Python ${{ matrix.python-version }} for ES ${{ matrix.elasticsearch-version }} | ||
strategy: | ||
matrix: | ||
|
@@ -73,6 +80,18 @@ jobs: | |
mysql --host $DB_HOST --port $DB_PORT -uroot -proot -e "CREATE DATABASE test_projects" | ||
mysql --host $DB_HOST --port $DB_PORT -uroot -proot test_projects < tests/test_projects.sql | ||
- name: Run Sortinghat Server | ||
run: | | ||
git clone --single-branch https://github.com/chaoss/grimoirelab-sortinghat /tmp/sortinghat | ||
cp tests/sortinghat_settings.py /tmp/sortinghat/config/settings/sortinghat_settings.py | ||
cd /tmp/sortinghat | ||
poetry install -vvv | ||
poetry run python manage.py migrate --settings=config.settings.sortinghat_settings | ||
poetry run python manage.py createsuperuser --username root --noinput --email '[email protected]' --settings=config.settings.sortinghat_settings | ||
poetry run python manage.py runserver --settings=config.settings.sortinghat_settings & | ||
poetry run python manage.py rqworker --settings=config.settings.sortinghat_settings & | ||
cd | ||
- name: Test package | ||
run: | | ||
PACKAGE=`(cd dist && ls *whl)` && echo $PACKAGE | ||
|