25 lines
531 B
YAML
25 lines
531 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DATABASE_URL: sqlite:///./ci.db
|
|
PYTHONUNBUFFERED: "1"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
cache: pip
|
|
- run: python -m pip install --upgrade pip
|
|
- run: python -m pip install -r requirements.txt
|
|
- run: python -m pytest -q
|
|
- run: node --check app/static/admin.js
|