From d5f672698004ae05f55e5e1f6a6e62a9cebbd530 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 1 Apr 2026 17:21:26 +0900 Subject: ci: add Gitea Actions workflow and CI script --- .gitea/workflows/ci.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .gitea/workflows/ci.yaml (limited to '.gitea') diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..ab7c1c5 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,42 @@ +name: CI + +on: + push: + branches: [master, main] + pull_request: + branches: [master, main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + pip install -e shared/ + pip install pytest pytest-asyncio ruff + + - name: Lint + run: | + ruff check . + ruff format --check . + + - name: Test + run: pytest -v + + docker: + runs-on: ubuntu-latest + needs: test + if: github.ref == 'refs/heads/master' + steps: + - uses: actions/checkout@v4 + + - name: Build Docker images + run: | + docker compose build -- cgit v1.2.3