Skip to content

fixup! chore(linter): replace black with ruff #150

fixup! chore(linter): replace black with ruff

fixup! chore(linter): replace black with ruff #150

Workflow file for this run

name: CI
on: [ push, pull_request ]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: Install Poetry
run: |
pip install poetry
poetry config virtualenvs.path ~/.cache/pypoetry/virtualenvs
- name: Restore virtualenv from cache
id: cache
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry/virtualenvs
key: poetry-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: poetry install
- run: poetry run ruff check
- run: poetry run ruff format --diff
- run: poetry run pytest