diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml index a3e17f785..695b42df6 100644 --- a/.github/workflows/test-docs.yml +++ b/.github/workflows/test-docs.yml @@ -32,6 +32,15 @@ jobs: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 ports: - 3306:3306 + mysql: + image: mysql:5.7 + env: + MYSQL_ROOT_PASSWORD: ihatemoney + MYSQL_DATABASE: ihatemoney_ci + options: >- + --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + ports: + - 3307:3306 strategy: fail-fast: false @@ -67,12 +76,17 @@ jobs: run: tox -e py if: matrix.database == 'postgresql' env: - TESTING_SQLALCHEMY_DATABASE_URI: 'postgresql+psycopg2://postgres:ihatemoney@localhost/ihatemoney_ci' + TESTING_SQLALCHEMY_DATABASE_URI: 'postgresql+psycopg2://postgres:ihatemoney@localhost:5432/ihatemoney_ci' - name: Run Tox with mariadb run: tox -e py if: matrix.database == 'mariadb' env: - TESTING_SQLALCHEMY_DATABASE_URI: 'mysql+pymysql://root:ihatemoney@localhost/ihatemoney_ci' + TESTING_SQLALCHEMY_DATABASE_URI: 'mysql+pymysql://root:ihatemoney@localhost:3306/ihatemoney_ci' + - name: Run Tox with mysql + run: tox -e py + if: matrix.database == 'mysql' + env: + TESTING_SQLALCHEMY_DATABASE_URI: 'mysql+pymysql://root:ihatemoney@localhost:3307/ihatemoney_ci' - name: Run Lint & Docs run: tox -e lint_docs if: matrix.python-version == '3.8'