feat: migrate memu-server with comprehensive quality automation #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Quality | |
| on: | |
| push: | |
| branches: [ main, develop, 'feature/**' ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| quality-check: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Install dependencies | |
| run: | | |
| uv venv | |
| uv sync | |
| - name: Check code formatting | |
| run: | | |
| uv run ruff format --check . | |
| - name: Lint code | |
| run: | | |
| uv run ruff check . | |
| - name: Run tests | |
| env: | |
| OPENAI_API_KEY: "test-openai-key" | |
| DATABASE_URL: "sqlite:///:memory:" | |
| run: | | |
| uv run pytest -v --cov=app --cov-report=xml --cov-report=term | |
| - name: Upload coverage reports | |
| if: matrix.python-version == '3.13' | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| file: ./coverage.xml | |
| fail_ci_if_error: false | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |