Skip to content

πŸ’š Fixed the CI test. #69

πŸ’š Fixed the CI test.

πŸ’š Fixed the CI test. #69

Workflow file for this run

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