Revert normalize() performance changes (gh-143658) #1146
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: tests | |
| on: | |
| merge_group: | |
| push: | |
| branches-ignore: | |
| # temporary GH branches relating to merge queues (jaraco/skeleton#93) | |
| - gh-readonly-queue/** | |
| tags: | |
| # required if branches-ignore is supplied (jaraco/skeleton#103) | |
| - '**' | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| strategy: | |
| # https://blog.jaraco.com/efficient-use-of-ci-resources/ | |
| matrix: | |
| python: | |
| - "3.10" | |
| - "3.14" | |
| - "3.14t" | |
| platform: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| include: | |
| - python: "3.11" | |
| platform: ubuntu-latest | |
| - python: "3.12" | |
| platform: ubuntu-latest | |
| - python: "3.13" | |
| platform: ubuntu-latest | |
| - python: "3.15" | |
| platform: ubuntu-latest | |
| - python: pypy3.11 | |
| platform: ubuntu-latest | |
| uses: ./.github/workflows/test-suite.yml | |
| with: | |
| python: ${{ matrix.python }} | |
| platform: ${{ matrix.platform }} | |
| # continue-on-error can't be set on a reusable-workflow caller job | |
| # (jaraco/skeleton#199), so pass it through as an input instead. | |
| continue-on-error: ${{ matrix.python == '3.15' }} | |
| collateral: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| job: | |
| - diffcov | |
| - docs | |
| uses: ./.github/workflows/test-suite.yml | |
| with: | |
| platform: ubuntu-latest | |
| tox-env: ${{ matrix.job }} | |
| check: # This job does nothing and is only used for the branch protection | |
| if: always() | |
| needs: | |
| - test | |
| - collateral | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Decide whether the needed jobs succeeded or failed | |
| uses: re-actors/alls-green@release/v1 | |
| with: | |
| jobs: ${{ toJSON(needs) }} | |
| release: | |
| permissions: | |
| contents: write | |
| needs: | |
| - check | |
| if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.x | |
| - name: Install tox | |
| run: python -m pip install tox | |
| - name: Run | |
| run: tox -e release | |
| env: | |
| TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |