Repository navigation
Merge pull request #55 from 136dxj/main #67
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: | |
| branches: [main] | |
| paths-ignore: | |
| - "*.md" | |
| - "CONTRIBUTING.md" | |
| - "CLAUDE.md" | |
| - "LICENSE" | |
| pull_request: | |
| branches: [main] | |
| paths-ignore: | |
| - "*.md" | |
| - "CONTRIBUTING.md" | |
| - "CLAUDE.md" | |
| - "LICENSE" | |
| env: | |
| UV_FROZEN: "1" | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Lint with ruff | |
| run: | | |
| uv tool run ruff check . | |
| uv tool run ruff format --check . | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --extra dev | |
| - name: mypy | |
| run: uv run mypy src/unilab | |
| - name: pyright | |
| run: uv run pyright | |
| test: | |
| # strategy: | |
| # matrix: | |
| # os: [ubuntu-latest, macos-latest] | |
| # python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| # runs-on: ${{ matrix.os }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| # python-version: ${{ matrix.python-version }} | |
| python-version: '3.11' | |
| # - name: Install dependencies (Linux) | |
| # if: runner.os == 'Linux' | |
| # run: | | |
| # sudo apt-get update && sudo apt-get install -y cmake | |
| # uv sync --extra dev | |
| # - name: Install dependencies (macOS) | |
| # if: runner.os == 'macOS' | |
| # run: | | |
| # brew install cmake | |
| # uv sync --extra dev | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y cmake | |
| uv sync --extra dev | |
| - name: Test with coverage | |
| run: uv run pytest -m "not slow" --cov=unilab --cov-report=term-missing --cov-fail-under=10 |