Add gha for test and lint #8
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: Python CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: "0.7.3" | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --frozen --all-extras --dev | |
| - name: Run pytest | |
| # Skip real API validation tests | |
| run: uv run pytest -v -m "not integration" | |
| - name: Run ruff format check | |
| run: uv run ruff format --check . |