feat: 新增GetUserSeatQuota SDK和CLI #16
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: | |
| contents: read | |
| jobs: | |
| tests: | |
| name: Tests (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - name: Install package | |
| run: python -m pip install --upgrade pip && python -m pip install -e . | |
| - name: Run unit tests | |
| run: python -m unittest discover -s tests -p "test_*.py" | |
| - name: Compile sources | |
| run: python -m compileall -q arkclaw examples | |
| quality: | |
| name: Lint and type check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install development dependencies | |
| run: python -m pip install --upgrade pip && python -m pip install -e ".[dev]" | |
| - name: Run Ruff | |
| run: ruff check arkclaw tests examples | |
| - name: Run mypy | |
| run: mypy arkclaw | |
| package: | |
| name: Build distribution | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install build tools | |
| run: python -m pip install --upgrade pip && python -m pip install build twine | |
| - name: Build package | |
| run: python -m build | |
| - name: Check package metadata | |
| run: twine check dist/* |