54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
lua-format:
|
|
name: Lua Formatting
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: JohnnyMorganz/stylua-action@v4
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
version: latest
|
|
args: --check .
|
|
|
|
lua-lint:
|
|
name: Lua Linting
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Lint with Selene
|
|
uses: NTBBloodbath/selene-action@v1.0.0
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
args: --display-style quiet .
|
|
|
|
python-format:
|
|
name: Python Formatting
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v4
|
|
- name: Install ruff
|
|
run: uv tool install ruff
|
|
- name: Check Python formatting with ruff
|
|
run: ruff format --check templates/scrapers/
|
|
|
|
python-lint:
|
|
name: Python Linting
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v4
|
|
- name: Install ruff
|
|
run: uv tool install ruff
|
|
- name: Lint Python files with ruff
|
|
run: ruff check templates/scrapers/
|