Fix CI/CD workflow and pyproject.toml configuration
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user