Fix CI/CD workflow and pyproject.toml configuration

This commit is contained in:
Developer
2026-03-22 16:12:35 +00:00
parent b705528b86
commit 71bae33ea9
2 changed files with 109 additions and 12 deletions

View File

@@ -1,12 +1,48 @@
name: CI
on: push
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip3 install --no-cache-dir -e /app 2>&1 | tail -30 || echo "Exit code: $?"
pip install -e ".[dev]"
- name: Run linting
run: ruff check src/
- name: Run tests
run: |
pytest /app/tests/ -v 2>&1 | tail -30 || echo "Exit code: $?"
run: pytest tests/ -v
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install -e .
- name: Verify import
run: python -c "import memory_manager; print(memory_manager.__version__)"
- name: Verify CLI
run: memory --version