Repository navigation
Update Actions #1
Workflow file for this run
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: ['**'] | |
| paths: | |
| - 'client/python/**' | |
| - '.github/workflows/python.yml' | |
| pull_request: | |
| branches: ['**'] | |
| paths: | |
| - 'client/python/**' | |
| - '.github/workflows/python.yml' | |
| defaults: | |
| run: | |
| working-directory: client/python | |
| jobs: | |
| build_and_test: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set Up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Install Package and Dev Deps | |
| run: pip install -e ".[dev]" | |
| - name: Run Tests | |
| run: pytest -v | |
| lint: | |
| name: Lint and Format Check (ruff) | |
| runs-on: ubuntu-latest | |
| continue-on-error: false | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set Up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' | |
| - name: Install Package and Dev Deps | |
| run: pip install -e ".[dev]" | |
| - name: Check Formatting | |
| run: ruff format --check . | |
| - name: Run Ruff Linter | |
| run: ruff check . |