Merge pull request #331 from smithy-lang/dependabot/pip/python-81070b… #1163
This file contains 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: Type Check | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Python for type checking - 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Initialize Pants | |
uses: pantsbuild/actions/init-pants@main | |
with: | |
# v0 makes it easy to bust the cache if needed | |
# just increase the integer to start with a fresh cache | |
gha-cache-key: v0 | |
named-caches-hash: ${{ hashFiles('python-default.lock') }} | |
pants-ci-config: pants.ci.toml | |
- name: Run type checks | |
run: | | |
make check-py |