Skip to content

Github Actions

Github Actions #4

name: Simulation Bridge Lint (pylint & autopep8)
on: [pull_request, push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
run: |
python -m pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python -
env:
POETRY_HOME: ${{ runner.temp }}/poetry
- run: echo "${{ runner.temp }}/poetry/bin" >> $GITHUB_PATH
- name: Install deps
run: poetry install --with dev
# ---------- autopep8 ----------
- name: Check formatting with autopep8
run: |
poetry run autopep8 --recursive --diff .
# ---------- pylint ----------
- name: Run pylint (fail under 8.0/10)
run: |
poetry run pylint simulation_bridge --fail-under=8