test-actions/.gitea/workflows/test.yaml
cxai 1b802834b2
All checks were successful
CxAI CI Pipeline / build (push) Successful in 14s
CxAI CI Pipeline / lint (push) Successful in 12s
CxAI CI Pipeline / test (push) Successful in 0s
full CI pipeline
2026-05-02 20:46:51 +00:00

48 lines
1.2 KiB
YAML

name: CxAI CI Pipeline
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
- name: System Info
run: |
echo "=== CxAI Runner ==="
echo "Host: $(hostname)"
echo "OS: $(lsb_release -ds 2>/dev/null || uname -s)"
echo "Kernel: $(uname -r)"
echo "Python: $(python3 --version)"
echo "Node: $(node --version)"
echo "Git: $(git --version)"
echo "Docker: $(docker --version 2>/dev/null || echo N/A)"
echo "=== Build Complete ==="
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
- name: Run Linter
run: |
echo "Running lint checks..."
python3 -c "import ast; print('Python AST module OK')"
echo "Lint passed!"
test:
runs-on: ubuntu-latest
needs: [build, lint]
steps:
- name: Run Tests
run: |
echo "Running test suite..."
python3 -c "import unittest; print('unittest OK')"
echo "All tests passed!"