From 745ec89048868432ce67688e863b37061b7c240a Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 22 Mar 2026 16:58:59 +0000 Subject: [PATCH] fix: simplify CI workflow structure --- .gitea/workflows/ci.yml | 43 +++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e6e7281..ac0afa8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,36 +2,35 @@ name: CI on: push: - branches: [main] + branches: [ main ] pull_request: - branches: [main] + 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 . + - run: | + echo "Testing CI..." + python3 --version + pip3 --version - - name: Check Python - run: | - which python3 || which python || echo "Python not found" - python3 --version || python --version || echo "Python version failed" + - name: Checkout + uses: actions/checkout@v4 - - name: Install dependencies + - name: Install deps run: | - pip3 install -e ".[dev]" || pip install -e ".[dev]" + pip3 install -e ".[dev]" - - name: Run linting + - name: Lint run: | ruff check src/ - - name: Run type checking + - name: Type check run: | mypy src/ - - name: Run tests + - name: Test run: | pytest tests/ -v @@ -39,22 +38,16 @@ jobs: 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: Checkout + uses: actions/checkout@v4 - - name: Check Python + - name: Install deps 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 . + pip3 install -e . - name: Verify import run: | - python3 -c "import memory_manager; print(memory_manager.__version__)" || python -c "import memory_manager; print(memory_manager.__version__)" + python3 -c "import memory_manager; print(memory_manager.__version__)" - name: Verify CLI run: |