Removed shared workspaces to improve compatibility (fixes #517) #183
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: "MyPy + Flake8" | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9.5 | |
- name: Install pipenv | |
run: pip install pipenv==2021.5.29 | |
- id: cache-pipenv | |
uses: actions/cache@v2 | |
with: | |
path: ~/.local/share/virtualenvs | |
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }} | |
- name: Install package | |
if: steps.cache-pipenv.outputs.cache-hit != 'true' | |
run: | | |
pipenv install -e . | |
pipenv install --dev -r requirements.dev.txt | |
- name: Flake8 | |
run: pipenv run flake8 src | |
- name: MyPy | |
run: pipenv run mypy src |