name: Test DBUtils using tox

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']

    steps:
      - uses: actions/checkout@v4

      - name: Setup Python ${{ matrix.python }}
        uses: actions/setup-python@v4
        with:
          python-version: ${{ matrix.python }}

      - run: pip install tox

      - run: tox -e py

      - if: matrix.python == 3.11
        run: TOXENV=ruff,manifest,docs,spell tox
