fix(language): use PyLong_AsSize_t for pointer-sized language IDs #607
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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - tree_sitter/** | |
| - tests/** | |
| - .github/workflows/ci.yml | |
| pull_request: | |
| paths: | |
| - tree_sitter/** | |
| - tests/** | |
| - .github/workflows/ci.yml | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{github.workflow}}-${{github.ref}} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| os: | |
| - ubuntu-24.04 | |
| - ubuntu-24.04-arm | |
| - macos-15 | |
| - macos-15-intel | |
| - windows-2025 | |
| - windows-11-arm | |
| exclude: | |
| - os: windows-11-arm | |
| python: "3.10" | |
| runs-on: ${{matrix.os}} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| with: | |
| submodules: true | |
| - name: Set up Python ${{matrix.python}} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{matrix.python}} | |
| - name: Lint | |
| continue-on-error: true | |
| run: pipx run ruff check . --output-format=github | |
| - name: Build | |
| run: pip install -v -e .[tests] | |
| env: | |
| CFLAGS: -Wextra -Og -g -fno-omit-frame-pointer | |
| - name: Test | |
| run: python -munittest -v | |
| # FIXME: remove when the tests stop crashing | |
| continue-on-error: ${{runner.os == 'Windows'}} |