Allow building in free-threaded python #5763
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: mypy | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| # Cancel superseded in-progress runs for the same PR/branch. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| mypy: | |
| name: mypy | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| shell: bash -leo pipefail {0} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: mamba-org/setup-micromamba@d7c9bd84e824b79d2af72a2d4196c7f4300d3476 # v3.0.0 | |
| with: | |
| micromamba-version: "1.5.10-0" # until https://github.com/mamba-org/setup-micromamba/issues/225 is resolved | |
| environment-file: environment.yml | |
| init-shell: bash | |
| cache-environment: true | |
| post-cleanup: "all" | |
| - name: Install pytensor and mypy dependencies | |
| run: | | |
| pip install -e . | |
| python --version | |
| shell: micromamba-shell {0} | |
| - name: Run mypy | |
| run: | | |
| python ./scripts/run_mypy.py --verbose | |
| shell: micromamba-shell {0} |