From 4100719051ceeaf158f5b0eaab652de0fd243566 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Thu, 2 Jan 2025 11:43:12 -0800 Subject: [PATCH] Test MySQL 9.x, 8.x, and 8.0.19. --- .github/workflows/_test.yml | 8 +++++++- Makefile | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml index c7ad8ff..1eba53c 100644 --- a/.github/workflows/_test.yml +++ b/.github/workflows/_test.yml @@ -11,13 +11,17 @@ jobs: runs-on: ubuntu-latest strategy: matrix: + mysql-version: + - "9" + - "8" + - "8.0.19" python-version: - "3.9" - "3.10" - "3.11" - "3.12" - name: "test #${{ matrix.python-version }}" + name: "test python ${{ matrix.python-version }} | mysql ${{ matrix.mysql-version }}" steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }} @@ -34,6 +38,8 @@ jobs: - name: Run tests shell: bash + env: + MYSQL_VERSIONS: ${{ matrix.mysql-version }} run: | make test diff --git a/Makefile b/Makefile index cd5a73b..c0b0ee9 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ ###################### start-mysql: - MYSQL_VERSION=${MYSQL_VERSION:-8} docker compose -f tests/compose-mysql.yml up -V --force-recreate --wait || ( \ + MYSQL_VERSION=${MYSQL_VERSION} docker compose -f tests/compose-mysql.yml up -V --force-recreate --wait || ( \ echo "Failed to start MySQL, printing logs..."; \ docker compose -f tests/compose-mysql.yml logs; \ exit 1 \