Test Compatibility #6
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: Test Compatibility | |
| on: | |
| push: | |
| paths: | |
| - pyproject.toml | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| prepare-setuptools: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| versions: ${{ steps.parser.outputs.versions || '[]' }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.14" | |
| - name: Generate version matrix | |
| id: parser | |
| run: | | |
| python -m pip install --upgrade requests packaging | |
| versions=$(python .github/scripts/ci_loop_versions.py setuptools ">=77.0.1,<83") | |
| echo "versions=$versions" >> "$GITHUB_OUTPUT" | |
| check-setuptools: | |
| needs: prepare-setuptools | |
| if: needs.prepare-setuptools.outputs.versions != '[]' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: ${{ fromJSON(needs.prepare-setuptools.outputs.versions) }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.14" | |
| cache: pip | |
| - name: Install package with selected setuptools | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install . "setuptools==${{ matrix.version }}" | |
| - name: Show versions | |
| run: | | |
| python --version | |
| python -m pip show setuptools |