Skip to content

Commit

Permalink
Improve mypy gh action (#79)
Browse files Browse the repository at this point in the history
* improve mypy gh action

* don't filter by file change for sake of consistency

* specify python version to avoid warning

* upgrade setup-python action to latest
  • Loading branch information
joshdavham authored Jan 9, 2025
1 parent 1777e77 commit cb43525
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
name: Lint
name: mypy

on:
pull_request:
push:
paths:
- '*.py'
on: [push, pull_request]

jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
architecture: x64
- name: Checkout
uses: actions/checkout@v3
python-version: '3.x'
- name: Install mypy
run: pip install mypy
run: |
python -m pip install --upgrade pip
pip install mypy
- name: Run mypy
uses: sasanquaneuf/mypy-github-action@releases/v1
with:
checkName: 'mypy' # NOTE: this needs to be the same as the job name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cb43525

Please sign in to comment.