Merge pull request 'ci: run tests on main and pull requests' (#39) from chore/ci-cd-production into main
Some checks failed
CI / test (push) Has been cancelled

Reviewed-on: #39
This commit was merged in pull request #39.
This commit is contained in:
2026-09-11 10:06:21 +00:00

24
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,24 @@
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