Skip to content

Commit

Permalink
MyPy on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Oct 30, 2019
1 parent 80cdcef commit 350c456
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,6 @@ version: 2.1
orbs:
codecov: codecov/[email protected]
jobs:
mypy:
docker:
- image: circleci/python:3.7.2
steps:
- checkout
- run: sudo chown -R circleci:circleci /usr/local/bin
- run:
sudo chown -R circleci:circleci /usr/local/lib/python3.7/site-packages
- run: poetry config settings.virtualenvs.in-project true
- restore_cache:
key: deps-{{ .Branch }}-{{ checksum "poetry.lock" }}
- run:
command: poetry install
- save_cache:
key: deps-{{ .Branch }}-{{ checksum "poetry.lock" }}
paths:
- ".venv"
- "/usr/local/bin"
- "/usr/local/lib/python3.7/site-packages"
- run:
command: |
poetry run mypy --ignore-missing-imports .
deploy:
docker:
- image: circleci/python:3.7.3
Expand All @@ -41,9 +19,6 @@ jobs:

workflows:
version: 2
main:
jobs:
- mypy
deploy:
jobs:
- deploy:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,14 @@ jobs:
- name: Install dependencies
run: poetry install
- run: poetry run flake8

mypy:
runs-on: ubuntu-latest
container: python:3.8

steps:
- uses: actions/checkout@master
- run: pip install poetry
- name: Install dependencies
run: poetry install
- run: poetry run mypy --ignore-missing-imports .

0 comments on commit 350c456

Please sign in to comment.