[ON HOLD] feat: align SDK with Hub v3 API #316
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 | |
| pull_request: | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| timeout-minutes: 10 | |
| name: lint | |
| runs-on: "ubuntu-latest" | |
| permissions: | |
| contents: read # checkout | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Run lints | |
| run: uv run ruff check . && uv run pyright && uv run mypy . && uv run python -c 'import giskard_hub' | |
| build: | |
| if: github.event_name == 'push' || github.event.pull_request.head.repo.fork | |
| timeout-minutes: 10 | |
| name: build | |
| runs-on: "ubuntu-latest" | |
| permissions: | |
| contents: read # checkout | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Run build | |
| run: uv build | |
| test: | |
| timeout-minutes: 10 | |
| name: test | |
| runs-on: "ubuntu-latest" | |
| permissions: | |
| contents: read # checkout | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Run tests | |
| run: uv run pytest |