Skip to content

Commit

Permalink
fix(gha): Fix test specifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-AP committed Feb 27, 2025
1 parent cddb557 commit f3f1af1
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,27 @@ jobs:
strategy:
max-parallel: 4
matrix:
db: [mysql]
python-version: [3.8, 3.10.4]
include:
- db: mysql
db_port: 3306
db_engine: django.db.backends.mysql
db_user: root

services:
mysql:
image: mysql
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: ddmtestdb
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- uses: actions/checkout@v3
Expand All @@ -34,7 +54,15 @@ jobs:
pip install psycopg2 mysqlclient
pip install -r test_project/dev_requirements.txt
- name: Run Tests
- name: Run Tests With ${{ matrix.db }}
env:
DB: ${{ matrix.db }}
DB_ENGINE: ${{ matrix.db_engine }}
DB_NAME: ddmtestdb
DB_USER: ${{ matrix.db_user }}
DB_PASSWORD: password
DB_PORT: ${{ matrix.db_port }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
python test_project/manage.py test ddm
Expand Down

0 comments on commit f3f1af1

Please sign in to comment.