Use v2 #479
Workflow file for this run
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: Test and lint | |
on: [push] | |
env: | |
PYTHONPATH: . | |
PYTHONHASHSEED: 0 | |
jobs: | |
test_and_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
id: setup-python | |
with: | |
python-version: "3.9" | |
- run: pip install pipenv | |
- name: Cache virtualenvs | |
uses: actions/cache@v2 | |
with: | |
path: ~/.local/share/virtualenvs/ | |
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }} | |
- run: pipenv sync --dev | |
- run: pipenv run pytest | |
- run: pipenv run mypy . | |
- run: pipenv run ./scripts/format_check.sh |