Merge pull request #61 from LeakIX/feat/ci-per-commit #159
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: push | |
| jobs: | |
| ci: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: lint | |
| run: uv run ruff check . | |
| - name: format check | |
| run: uv run black --check . | |
| - name: sort-check | |
| run: uv run isort --check-only . | |
| - name: typecheck | |
| run: uv run mypy l9format | |
| - name: test | |
| run: uv run pytest | |
| - name: security-audit | |
| run: uv run pip-audit | |