build(deps):(deps): bump install-pinned/ruff
Bumps [install-pinned/ruff](https://github.com/install-pinned/ruff) from 48a5818c5f7ce30e2822b67fb9c26d3e25d31fab to 826c99bfba88282a5506ab737c92253a106c070e.
- [Release notes](https://github.com/install-pinned/ruff/releases)
- [Commits](48a5818c5f...826c99bfba)
---
updated-dependencies:
- dependency-name: install-pinned/ruff
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: autofix.ci
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "poetry.lock"
|
|
- "pyproject.toml"
|
|
- "src/backend/**"
|
|
env:
|
|
POETRY_VERSION: "1.8.2"
|
|
|
|
jobs:
|
|
lint:
|
|
name: Run Ruff Check and Format
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: install-pinned/ruff@826c99bfba88282a5506ab737c92253a106c070e
|
|
- run: ruff check --fix-only .
|
|
- run: ruff format .
|
|
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
|
|
lock:
|
|
name: Check Poetry lock
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python 3.12
|
|
uses: "./.github/actions/poetry_caching"
|
|
with:
|
|
python-version: "3.12"
|
|
poetry-version: ${{ env.POETRY_VERSION }}
|
|
cache-key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-${{ hashFiles('**/poetry.lock') }}
|
|
- name: Check poetry.lock
|
|
id: check
|
|
run: |
|
|
poetry check --lock
|
|
continue-on-error: true
|
|
|
|
- name: Run lock
|
|
if : steps.check.outcome == 'failure'
|
|
run: |
|
|
make lock
|
|
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
|
|
- name: Diff poetry.lock
|
|
uses: nborrmann/diff-poetry-lock@main
|