48 lines
1.2 KiB
YAML
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!"
|