61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
run: |
|
|
git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/agentic-codebase-memory-manager.git .
|
|
|
|
- name: Check Python
|
|
run: |
|
|
which python3 || which python || echo "Python not found"
|
|
python3 --version || python --version || echo "Python version failed"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip3 install -e ".[dev]" || pip install -e ".[dev]"
|
|
|
|
- name: Run linting
|
|
run: |
|
|
ruff check src/
|
|
|
|
- name: Run type checking
|
|
run: |
|
|
mypy src/
|
|
|
|
- name: Run tests
|
|
run: |
|
|
pytest tests/ -v
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
needs: test
|
|
steps:
|
|
- name: Checkout code
|
|
run: |
|
|
git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/agentic-codebase-memory-manager.git .
|
|
|
|
- name: Check Python
|
|
run: |
|
|
which python3 || which python || echo "Python not found"
|
|
python3 --version || python --version || echo "Python version failed"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip3 install -e . || pip install -e .
|
|
|
|
- name: Verify import
|
|
run: |
|
|
python3 -c "import memory_manager; print(memory_manager.__version__)" || python -c "import memory_manager; print(memory_manager.__version__)"
|
|
|
|
- name: Verify CLI
|
|
run: |
|
|
memory --version |