style(readme): add CI badge to readme #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: | |
| check: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install ruff | |
| run: python -m pip install --upgrade pip uv ruff | |
| - name: Ruff check | |
| run: uv run python -m ruff check | |
| - name: Install pytest | |
| run: uv sync --group test | |
| - name: Install pytest | |
| run: uv pip install . | |
| - name: Run pytest | |
| run: uv run python -m pytest |