From d5f41e015f1266b456913f2e7110e936b83ed720 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 11 Sep 2026 13:04:54 +0300 Subject: [PATCH] ci: run tests on pushes and pull requests --- .gitea/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..6ba2cbb --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -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 -- 2.49.1