Bump version to 0.4.32 & add changelog entry #546
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: > | |
| ${{ github.workflow }} @ | |
| ${{ github.event.pull_request.head.label || github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python-version: ["3.8", "3.14"] | |
| os: [ubuntu-22.04, ubuntu-22.04-arm, windows-2022, macos-13] | |
| include: | |
| # set OS-specific cache paths | |
| - os: ubuntu-22.04 | |
| path: ~/.cache/pip | |
| - os: ubuntu-22.04-arm | |
| path: ~/.cache/pip | |
| - os: windows-2022 | |
| path: ~\AppData\Local\pip\Cache | |
| - os: macos-13 | |
| path: ~/Library/Caches/pip | |
| # more combinations: | |
| - os: ubuntu-22.04 | |
| python-version: "pypy3.11" | |
| path: ~/.cache/pip | |
| - os: ubuntu-22.04-arm | |
| python-version: "pypy3.11" | |
| path: ~/.cache/pip | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Restore Rust/Cargo cache | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-${{ runner.arch }}-rust-v4-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Restore Python/pip cache | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: ${{ matrix.path }} | |
| key: ${{ runner.os }}-${{ runner.arch }}-python-v3-${{ hashFiles('**/requirements.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ runner.arch }}-python-v3- | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -v -e .[test,stubtest] | |
| shell: bash | |
| - name: Run Cargo tests | |
| run: | | |
| cargo test --no-default-features | |
| # XXX doesn't work on Pypy due to some shared lib issues... | |
| if: "!startsWith(matrix.python-version, 'pypy')" | |
| - name: Run pytest tests | |
| run: | | |
| pytest | |
| - name: Run Mypy stubtest | |
| # XXX doesn't work on Pypy due to some symtable issues and on Windows | |
| # with Python 3.8 due to pathlib issues... | |
| if: > | |
| !startsWith(matrix.python-version, 'pypy') | |
| && !( | |
| startsWith(matrix.python-version, '3.8') | |
| && startsWith(matrix.os, 'windows-') | |
| ) | |
| run: > | |
| stubtest | |
| ${{ | |
| !startsWith(matrix.python-version, '3.8') | |
| && '--ignore-disjoint-bases' | |
| || '' | |
| }} | |
| --allowlist stubtest-allowlist json_stream_rs_tokenizer | |
| - name: Save Rust/Cargo cache | |
| uses: actions/cache/save@v4 | |
| if: always() | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-${{ runner.arch }}-rust-v4-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Save Python/pip cache | |
| uses: actions/cache/save@v4 | |
| if: always() | |
| with: | |
| path: ${{ matrix.path }} | |
| key: ${{ runner.os }}-${{ runner.arch }}-python-v3-${{ hashFiles('**/requirements.txt') }} |