fix(build): Add free-threaded python3.14t to the testing
#462
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
| # TODO: Enable os: windows-latest | |
| # TODO: Enable pytest --doctest-modules | |
| name: Python_tests | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| Python_tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 5 | |
| matrix: | |
| os: [macos-15-intel, macos-latest, ubuntu-latest] # , windows-latest] | |
| python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"] | |
| include: | |
| - os: macos-26 | |
| python-version: 3.x | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| allow-prereleases: true | |
| - uses: seanmiddleditch/gha-setup-ninja@v6 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install --editable ".[dev]" | |
| - run: ./gyp -V && ./gyp --version && gyp -V && gyp --version | |
| - name: Lint with ruff # See pyproject.toml for settings | |
| uses: astral-sh/ruff-action@v3 | |
| - run: ruff format --check --diff | |
| - name: Test with pytest | |
| run: pytest --parallel-threads=auto | |
| # - name: Run doctests with pytest | |
| # run: pytest --doctest-modules | |
| - name: Test CLI commands on a pipx install | |
| run: | | |
| pipx run --no-cache --spec ./ gyp --help | |
| pipx run --no-cache --spec ./ gyp --version |