Contributions #1
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: 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 |