Skip to content

Commit

Permalink
Include volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-Therrien-Beslogic committed Oct 1, 2024
1 parent c8193a7 commit e878cc7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/canopeum_backend_pr_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,21 @@ jobs:
- run: uv sync --locked --extra dev
- run: echo "$PWD/.venv/bin" >> $GITHUB_PATH
- name: Setup dockerized test DB
# These are the same default values found in settings.py
# but "test_" is appended to the db name
# https://docs.djangoproject.com/en/5.1/topics/testing/overview/#the-test-database
run: |
docker volume create --name mysql8-data
docker volume create --name mysql8-conf
docker container run --detach --name mysql \
--hostname mysql \
-p 3308:3306 \
--env MYSQL_DATABASE=test_canopeum_db \
--env MYSQL_ROOT_PASSWORD=Canopeum12345!@ \
--env MYSQL_USER=canopeum_user \
--env MYSQL_PASSWORD=CanopeumUser12345!@
--env MYSQL_PASSWORD=CanopeumUser12345!@ \
--volume mysql8-data:/var/lib/mysql \
--volume mysql8-conf:/etc/mysql/conf.d mysql:8
- name: Run Django Tests
run: python manage.py test
mypy:
Expand Down

0 comments on commit e878cc7

Please sign in to comment.