Fix spurious indentation in prompt() (#11) #9
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: | |
| pull_request: | |
| jobs: | |
| test: | |
| name: ${{ matrix.os }} / Python ${{ matrix.python-version }} / ${{ matrix.installer }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| python-version: | |
| - "3.10" | |
| installer: | |
| - pip | |
| - uv | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies with pip | |
| if: matrix.installer == 'pip' | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e . pytest ruff | |
| - name: Install uv and sync environment | |
| if: matrix.installer == 'uv' | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install uv | |
| uv sync --group dev | |
| - name: Lint with pip | |
| if: matrix.installer == 'pip' | |
| run: python -m ruff check . | |
| - name: Run tests with pip | |
| if: matrix.installer == 'pip' | |
| run: python -m pytest -q | |
| - name: Lint with uv | |
| if: matrix.installer == 'uv' | |
| run: uv run python -m ruff check . | |
| - name: Run tests with uv | |
| if: matrix.installer == 'uv' | |
| run: uv run python -m pytest -q |