Release v5.2.0 #77
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 | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "renovate/**" | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.14" | |
| - uses: astral-sh/setup-uv@v7 | |
| - run: uv sync --dev | |
| - run: uv run make lint | |
| - run: uv run make benchmark | |
| - run: make build | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: ".nvmrc" | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: uv run make test-coverage | |
| test_compat: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| name: ${{ matrix.python }} | |
| strategy: | |
| matrix: | |
| include: | |
| # Test oldest supported Python with lower bound dependencies. | |
| - python: "3.10" | |
| toxenv: py310-lower_bound_deps,py310-upper_bound_deps | |
| - python: "3.11" | |
| toxenv: py311-upper_bound_deps | |
| - python: "3.12" | |
| toxenv: py312-upper_bound_deps | |
| - python: "3.13" | |
| toxenv: py313-upper_bound_deps | |
| # Skip newest Python version, already tested in the main "test" job. | |
| # - python: "3.14" | |
| # toxenv: py314-upper_bound_deps | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - uses: astral-sh/setup-uv@v7 | |
| - run: uv sync --dev | |
| - run: uv run tox --parallel | |
| env: | |
| TOXENV: ${{ matrix.toxenv }} | |
| test_experimental: | |
| # Ad-hoc job to test experimental support without having to adjust all of our project for compatibility. | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| # See available versions: | |
| # https://github.com/actions/python-versions/tags | |
| python-version: "3.15.0-alpha.3" | |
| - uses: astral-sh/setup-uv@v7 | |
| # Dependencies to build lxml from source. | |
| - run: sudo apt-get install libxml2-dev libxslt-dev | |
| - run: uv sync --dev | |
| - run: uv run python -X dev -W error example.py | |
| - run: uv run make test |