fix: simplify CI workflow structure
This commit is contained in:
@@ -10,28 +10,27 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- run: |
|
||||||
run: |
|
echo "Testing CI..."
|
||||||
git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/agentic-codebase-memory-manager.git .
|
python3 --version
|
||||||
|
pip3 --version
|
||||||
|
|
||||||
- name: Check Python
|
- name: Checkout
|
||||||
run: |
|
uses: actions/checkout@v4
|
||||||
which python3 || which python || echo "Python not found"
|
|
||||||
python3 --version || python --version || echo "Python version failed"
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
pip3 install -e ".[dev]" || pip install -e ".[dev]"
|
pip3 install -e ".[dev]"
|
||||||
|
|
||||||
- name: Run linting
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
ruff check src/
|
ruff check src/
|
||||||
|
|
||||||
- name: Run type checking
|
- name: Type check
|
||||||
run: |
|
run: |
|
||||||
mypy src/
|
mypy src/
|
||||||
|
|
||||||
- name: Run tests
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
pytest tests/ -v
|
pytest tests/ -v
|
||||||
|
|
||||||
@@ -39,22 +38,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test
|
needs: test
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout
|
||||||
run: |
|
uses: actions/checkout@v4
|
||||||
git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/agentic-codebase-memory-manager.git .
|
|
||||||
|
|
||||||
- name: Check Python
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
which python3 || which python || echo "Python not found"
|
pip3 install -e .
|
||||||
python3 --version || python --version || echo "Python version failed"
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
pip3 install -e . || pip install -e .
|
|
||||||
|
|
||||||
- name: Verify import
|
- name: Verify import
|
||||||
run: |
|
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
|
- name: Verify CLI
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user