Skip to content

Commit

Permalink
Merge pull request #960 from Bidaya0/development/add-mypy-checking
Browse files Browse the repository at this point in the history
Mypycheck
  • Loading branch information
Bidaya0 committed Sep 14, 2022
2 parents b6d5d07 + 40855d9 commit 25956c5
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/MypyCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

name: "MypyCheck"

on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: '0 0 * * *'

jobs:
# This workflow contains a single job called "build"
Run-Unit-TEST:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7]

steps:
- name: Checkout
uses: actions/checkout@v2
with:
python-version: 3.7

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-prod.txt
- name: Django Unit Testing
run: |
mypy --show-error-codes --ignore-missing-imports --disable-error-code var-annotated --disable-error-code union-attr --disable-error-code dict-item --disable-error-code list-item --disable-error-code attr-defined --disable-error-code index --disable-error-code arg-type --disable-error-code assignment --disable-error-code misc .
10 changes: 10 additions & 0 deletions requirements-prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,13 @@ asyncio-gevent==0.2.1
gevent==21.12.0
ddt==1.6.0
boto3==1.24.59
mypy==0.961
typing-extensions==4.3.0
djangorestframework-stubs[compatible-mypy]==1.7.0
django-stubs[compatible-mypy]==1.12.0
types-PyMySQL==1.0.19
types-redis==4.3.20
types-requests==2.28.10
types-urllib3==1.26.24
boto3-stubs==1.24.72
botocore-stubs==1.27.71

0 comments on commit 25956c5

Please sign in to comment.