Skip to content

build(deps-dev): Bump ruff from 0.16.2 to 0.16.3 in /plugins/traction_innkeeper #332

build(deps-dev): Bump ruff from 0.16.2 to 0.16.3 in /plugins/traction_innkeeper

build(deps-dev): Bump ruff from 0.16.2 to 0.16.3 in /plugins/traction_innkeeper #332

name: Test and Lint Innkeeper Plugin
on:
pull_request:
branches: ["main"]
paths:
- "plugins/**"
jobs:
backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./plugins/traction_innkeeper
steps:
#----------------------------------------------
# Check out repo
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
#----------------------------------------------
# Install python and poetry with cache
#----------------------------------------------
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
id: setup-python
with:
python-version: "3.13"
- name: Install poetry
uses: snok/install-poetry@a783c322200f0519c7926aa6faa857c4e23e9263 # v1.4.2
with:
version: 2.1.1
virtualenvs-create: true
virtualenvs-in-project: false
- name: Configure poetry to use Python 3.13
run: poetry env use "${{ env.pythonLocation }}/bin/python3"
#----------------------------------------------
# Install dependencies
#----------------------------------------------
- name: Install dependencies
id: install-dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root --all-extras
#----------------------------------------------
# Lint plugins
#----------------------------------------------
- name: Format check
id: format-check
run: poetry run ruff format --check .
- name: Lint plugins
id: lint-plugins
run: poetry run ruff check .
#----------------------------------------------
# Unit tests
#----------------------------------------------
- name: Unit test plugins
id: unit-tests
env:
PYTHONPATH: .
run: poetry run pytest traction_innkeeper --cov --cov-fail-under 90