ci: add Gitea Actions workflow — ruff lint, docker build check (tests scaffolded)
This commit is contained in:
39
.gitea/workflows/ci.yaml
Normal file
39
.gitea/workflows/ci.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
container: python:3.12-slim
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: pip install ruff
|
||||
- run: ruff check agents/ || echo "ruff found issues — fix them"
|
||||
- run: ruff format --check agents/ || echo "ruff format mismatch"
|
||||
|
||||
# test:
|
||||
# name: Test
|
||||
# runs-on: ubuntu-latest
|
||||
# container: python:3.12-slim
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
# - run: pip install -r agents/requirements.txt
|
||||
# - run: pip install pytest
|
||||
# - run: pytest tests/ -v
|
||||
# #
|
||||
# # Uncomment and create tests/ when ready.
|
||||
# # Current state: zero tests. See CI plan doc for TDD roadmap.
|
||||
|
||||
docker-check:
|
||||
name: Docker Build Check
|
||||
# needs: test # uncomment when test job is enabled
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: docker compose build
|
||||
Reference in New Issue
Block a user