Merge pull request #678 from Benjamin-Knight/fix/#640-tablock-on-cont… #1091
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Unit tests | |
| on: # yamllint disable-line rule:truthy | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| - v* | |
| pull_request: | |
| branches: | |
| - master | |
| - v* | |
| schedule: | |
| - cron: '0 22 * * 0' | |
| jobs: | |
| unit-tests: | |
| name: Unit tests | |
| strategy: | |
| matrix: | |
| python_version: ["3.10", "3.11", "3.12", "3.13"] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: read | |
| container: | |
| image: ghcr.io/${{ github.repository }}:CI-${{ matrix.python_version }}-msodbc18 | |
| credentials: | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.github_token }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| run: pip install uv | |
| - name: Install dependencies | |
| run: uv pip install --system -e ".[pyodbc]" --group dev | |
| - name: Run unit tests | |
| run: pytest -n auto -ra -v tests/unit |