Skip to content

Commit

Permalink
[ci] Add SortingHat service to release workflow
Browse files Browse the repository at this point in the history
SortingHat service was missing on the release workflow
maiking it to fail.

Signed-off-by: Santiago Dueñas <[email protected]>
  • Loading branch information
sduenas committed Jan 10, 2023
1 parent 9938196 commit f047c88
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f047c88

Please sign in to comment.