feat: Add Gitea Actions CI workflow
Some checks failed
CI / test (push) Failing after 4s
CI / build (push) Has been skipped

This commit is contained in:
Motoko
2026-03-31 04:51:25 +00:00
parent ae2409ef46
commit 399b5121be

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

@@ -0,0 +1,51 @@
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
services:
sqlite:
image: alpine:latest
options: >-
--entrypoint /bin/sh
-c "echo 'Using in-memory SQLite for tests'"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest pytest-asyncio aiosqlite
- name: Run tests
run: pytest tests/ -v --tb=short
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: ./claudia-docs-api
push: false
tags: claudia-docs-api:latest