Skip to content

Contributions

Contributions #1

Workflow file for this run

name: Code Quality Checks
on:
pull_request:
types: [synchronize, opened, reopened, edited]
jobs:
pre-commit:
runs-on: ubuntu-latest
name: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
python-version: "3.10.10"
- run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip install --constraint=.github/workflows/constraints.txt pre-commit
- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install
- run: poetry run pre-commit run --all-files --show-diff-on-failure --color=always
- name: Test
run: poetry run pytest tests