build(deps-dev): Bump mypy from 1.18.2 to 1.19.1 #1597
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: Continuous Integration | |
| permissions: read-all | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - devs/** | |
| jobs: | |
| linters: | |
| timeout-minutes: 5 | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/[email protected] | |
| - uses: actions/[email protected] | |
| with: | |
| python-version: 3.14 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| version-file: requirements-uv.txt | |
| - name: Linters | |
| shell: bash | |
| run: uv run --locked poe linters | |
| test: | |
| timeout-minutes: 5 | |
| strategy: | |
| matrix: | |
| os: [ubuntu-24.04, windows-2025, macos-15] | |
| python: [3.13, 3.14] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/[email protected] | |
| - uses: actions/[email protected] | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| version-file: requirements-uv.txt | |
| - name: Tests | |
| shell: bash | |
| env: | |
| _MERGIFY_TEST_NEW_FLAKY_DETECTION: "true" | |
| PYTHONUTF8: "${{ matrix.os == 'windows-2025' && 1 || 0 }}" | |
| run: uv run --locked poe test | |
| - name: Build | |
| shell: bash | |
| run: uv build | |
| - name: Tests build | |
| shell: bash | |
| env: | |
| PYTHONUTF8: "${{ matrix.os == 'windows-2025' && 1 || 0 }}" | |
| run: | | |
| pip install dist/*.whl | |
| # We check the installed wheel produces a working binary, specially on Windows | |
| # to ensure the utf8 mode is enabled. | |
| python -c "import test_binary_build; test_binary_build.test_reexec_enables_utf8_and_prints_emoji();" | |
| ci-gate: | |
| if: ${{ !cancelled() }} | |
| needs: | |
| - test | |
| - linters | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Verify all jobs succeeded | |
| uses: Mergifyio/gha-mergify-ci@v11 | |
| with: | |
| action: wait-jobs | |
| jobs: ${{ toJSON(needs) }} |