π Fixed the CI test. #69
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: [3.9] | |
steps: | |
- id: checkout | |
name: "Checkout π" | |
uses: actions/checkout@v2 | |
- id: setup-python | |
name: "Setup Python ${{ matrix.python-version }} π" | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- id: setup-poetry | |
name: "Setup Poetry π" | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
- id: get-cache-poetry-directory | |
name: "Get poetry's cache directory π" | |
run: | | |
echo "::set-output name=dir::$(poetry config cache-dir)" | |
- id: cache-poetry-directory | |
name: "Cache poetry π¦" | |
uses: actions/cache@v3.0.11 | |
with: | |
path: ${{ steps.get-cache-poetry-directory.outputs.dir }} | |
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} | |
restore-keys: ${{ runner.os }}-poetry- | |
- id: install-dependencies | |
name: "Install dependencies π¨π»βπ»" | |
run: make setup | |
- id: poetry-lock | |
name: "Run poetry lock π" | |
run: poetry lock --check | |
- id: run-test | |
name: "Run tests π§ͺ" | |
run: make test | |
- id: run-linters | |
name: Run linters π¨ | |
run: make lint | |
- id: run-typing | |
name: Run mypy π· | |
run: make mypy |