Skip to content

Add Lint and Test CI Pipelines #18

Add Lint and Test CI Pipelines

Add Lint and Test CI Pipelines #18

Workflow file for this run

name: Lint
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: pip cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: lint-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
lint-pip-
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade poetry
poetry install
- name: Install Bash dependencies
run: sudo apt-get install --yes shellcheck
- name: Lint
run: poetry run lint --languages all --mode check