continue-custom/.github/workflows/python.yaml
danieleades c5a8b5a4f1
add python linting github workflow (#676)
* add ruff linting to python CI workflow

* address errors

---------

Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
2023-12-15 01:00:10 -08:00

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