Skip to content

Commit

Permalink
add check-mypy CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
ankona committed Jun 5, 2023
1 parent fde3291 commit f98e92b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check_mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: check-mypy
on:
pull_request:
push:
branches:
- master
- develop
- /feature\/.*/

jobs:
check_mypy:
name: Static Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"

- name: Install SmartSim
run: python -m pip install .[dev]

- name: Install mypy and type stubs
run: python -m pip install -r./requirements-mypy.txt

- name: Run mypy
run: make check-mypy
2 changes: 0 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ pylint>=2.6.0
pytest>=6.0.0
pytest-cov>=2.10.1
click==8.0.2
mypy>=1.3.0

2 changes: 2 additions & 0 deletions requirements-mypy.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mypy>=1.3.0

# From typeshed
types-psutil
types-redis
Expand Down

0 comments on commit f98e92b

Please sign in to comment.