32 lines
606 B
YAML
32 lines
606 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install tools
|
|
# Pinned: a newer ruff or shellcheck can turn an untouched tree red.
|
|
run: pip install pytest==9.1.1 ruff==0.16.9 shellcheck-py==0.11.0.1
|
|
|
|
- name: shellcheck
|
|
run: shellcheck deploy.sh
|
|
|
|
- name: ruff
|
|
run: |
|
|
ruff format --check .
|
|
ruff check .
|
|
|
|
- name: Tests
|
|
run: pytest
|