Skip to content

Commit

Permalink
Test MySQL 9.x, 8.x, and 8.0.19.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjni committed Jan 2, 2025
1 parent 53fd8b2 commit 4100719
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -34,6 +38,8 @@ jobs:
- name: Run tests
shell: bash
env:
MYSQL_VERSIONS: ${{ matrix.mysql-version }}
run: |
make test
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 4100719

Please sign in to comment.