ci: add CI lint workflow (replaces misnamed molecule.yml)

This commit is contained in:
Larry Smith Jr.
2026-04-08 10:08:22 -04:00
parent 7328da933e
commit 164b50b083
+35
View File
@@ -0,0 +1,35 @@
name: CI
on:
push:
branches-ignore:
- main
- master
pull_request:
branches:
- develop
- main
- master
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Check linting with pre-commit
run: pre-commit run --all-files