Skip to content

refactor: Check

refactor: Check #2

Workflow file for this run

name: Run tests
on:
push:
branches:
- main
- feat/*
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies-template
uses: actions/cache@v2
with:
path: ./.venv
key: venv-${{ runner.os }}-${{ hashFiles('./poetry.lock') }}
- name: Install dependencies
run: |
poetry install --no-interaction --no-root
- name: Style check
run: |
poetry run ruff check .
poetry run ruff format --check .