Version bump #211
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: Lint python | |
on: | |
push: | |
branches: | |
- stable | |
- develop | |
pull_request: | |
jobs: | |
code-style: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
name: Python ${{ matrix.python-version }} on ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- uses: Gr1N/setup-poetry@v9 | |
- name: Cache poetry | |
id: cache-poetry | |
uses: actions/cache@v4.0.2 | |
with: | |
path: ~/.cache/pypoetry/virtualenvs | |
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} | |
- name: Maybe install dependencies | |
if: steps.cache-venv.outputs.cache-hit != 'true' | |
run: poetry install --no-root --only dev | |
- name: Ruff | |
run: poetry run ruff . --no-fix --config pyproject.toml | |
continue-on-error: true | |
- name: Black | |
run: | | |
poetry run black . --diff --check --config pyproject.toml |