Shavaiz/plugin api revamp #200
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: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| check: | |
| name: Lint, Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install the project | |
| run: uv sync --locked --all-extras --dev | |
| - name: Check formatting | |
| run: uv run ruff format --check . | |
| - name: Check import sorting | |
| run: uv run ruff check --select I . | |
| - name: Lint | |
| run: uv run ruff check . | |
| - name: Type check | |
| run: uv run mypy --strict app/ tests/ | |
| - name: Run tests | |
| run: uv run pytest tests/ | |
| env: | |
| DATABASE_URL: sqlite:///./test.db | |
| SECRET_KEY: secret-key-for-ci |