chore(deps): update pypa/gh-action-pypi-publish digest to 2f6f737 #90
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: lint | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Setup and run pre-commit | |
uses: pre-commit/action@v3.0.0 | |
- name: Setup pdm | |
uses: pdm-project/setup-pdm@v3 | |
with: | |
python-version: "3.11" | |
cache: true | |
- name: Install dependencies | |
run: pdm install | |
- name: Enforce types with mypy | |
run: pdm type-check |