fix(ci): align matrix with Python 3.11 floor #31
Workflow file for this run
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: Python package | |
| on: | |
| push: | |
| paths: | |
| - "interdependent_lib/**" | |
| - "tests/**" | |
| - "pyproject.toml" | |
| - "README.md" | |
| - "CHANGELOG.md" | |
| - "docs/dependency-policy.md" | |
| - "docs/release-checklist.md" | |
| - ".github/workflows/python-package.yml" | |
| pull_request: | |
| paths: | |
| - "interdependent_lib/**" | |
| - "tests/**" | |
| - "pyproject.toml" | |
| - "README.md" | |
| - "CHANGELOG.md" | |
| - "docs/dependency-policy.md" | |
| - "docs/release-checklist.md" | |
| - ".github/workflows/python-package.yml" | |
| jobs: | |
| test-build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - uses: actions/setup-python@v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install package and dev tools | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[dev]" | |
| - name: Run tests | |
| run: pytest | |
| - name: Build distribution | |
| run: python -m build | |
| - name: Check distribution metadata | |
| run: python -m twine check dist/* |