* add ruff linting to python CI workflow * address errors --------- Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
38 lines
919 B
YAML
38 lines
919 B
YAML
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: ./server
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.12"
|
|
- uses: snok/install-poetry@v1
|
|
- name: Install dependencies
|
|
run: poetry install --only lint
|
|
- name: Run Ruff
|
|
run: poetry run ruff check --output-format=github .
|
|
|
|
# test:
|
|
# runs-on: ubuntu-latest
|
|
# steps:
|
|
# - uses: actions/checkout@v4
|
|
# - name: Install Python
|
|
# uses: actions/setup-python@v4
|
|
# with:
|
|
# python-version: "3.12"
|
|
# - uses: snok/install-poetry@v1
|
|
# - run: poetry run python -m pip install --upgrade pip setuptools
|
|
# - name: Install dependencies
|
|
# run: poetry install
|
|
# - run: poetry run pytest
|