Skip to content

Merge pull request #44 from wandelbotsgmbh/feature/manuel-detect-prot… #56

Merge pull request #44 from wandelbotsgmbh/feature/manuel-detect-prot…

Merge pull request #44 from wandelbotsgmbh/feature/manuel-detect-prot… #56

Workflow file for this run

name: check
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
checks: write # Required for status checks
jobs:
test:
name: Lint and Format Check
runs-on: ubuntu-latest
env:
PIP_CACHE_DIR: ${{ github.workspace }}/.cache/pip
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10.16"
cache: "pip"
- name: Cache Poetry dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
- name: Set up Python environment
run: |
pip install poetry
poetry install
- name: Check formatting with ruff
run: poetry run ruff format --check .
- name: Check ruff for linting
run: poetry run ruff check .