This repository has been archived by the owner on Sep 15, 2023. It is now read-only.
Upgrade to v0.8.2 #6
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 | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
name: Test | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- uses: snok/install-poetry@v1 | |
with: | |
version: "1.1.12" | |
virtualenvs-in-project: true | |
- uses: actions/cache@v2 | |
id: cached-poetry-venv | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ hashFiles('poetry.lock') }} | |
- name: Install dependencies | |
if: steps.cached-poetry-venv.outputs.cache-hit != 'true' | |
run: poetry install --no-interaction --no-root | |
- name: Install project root | |
run: poetry install --no-interaction | |
- run: poetry run format | |
- run: poetry run sort-imports | |
- run: poetry run lint | |
- run: poetry run typecheck | |
- run: poetry run test |