feat: bump to 4.3.0 and support django async #191
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: CI Check for bkpaas-auth | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - "sdks/bkpaas-auth/**" | |
| pull_request: | |
| branches: [master] | |
| paths: | |
| - "sdks/bkpaas-auth/**" | |
| workflow_dispatch: | |
| release: | |
| types: [published] | |
| jobs: | |
| check: | |
| runs-on: macos-latest | |
| continue-on-error: true | |
| if: ${{ github.event_name != 'release' || contains(github.event.release.tag_name, 'bkpaas-auth') }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.11 | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install Poetry system-wide | |
| # Use uv install to install poetry directly instead github action for simplicity | |
| run: uv pip install --system poetry==2.1.3 | |
| - name: Ruff check | |
| run: poetry install && poetry run ruff check ./sdks/bkpaas-auth --config ./pyproject.toml | |
| - name: Lint with mypy | |
| working-directory: sdks/bkpaas-auth | |
| run: poetry install && poetry run mypy . --config-file=./pyproject.toml | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13", "3.14"] | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| if: ${{ github.event_name != 'release' || contains(github.event.release.tag_name, 'bkpaas-auth') }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install Nox | |
| run: uv pip install --system nox==2025.11.12 | |
| - name: Show nox version | |
| working-directory: sdks/bkpaas-auth | |
| run: nox --version | |
| - name: Run tests on ${{ matrix.os }} | |
| working-directory: sdks/bkpaas-auth | |
| run: nox --non-interactive --error-on-missing-interpreters --session "tests(python='${{ matrix.python-version }}')" -- --full-trace | |
| build: | |
| runs-on: macos-latest | |
| if: github.event.release && contains(github.event.release.tag_name, 'bkpaas-auth') | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.11 | |
| - name: Set up Poetry | |
| uses: abatilo/actions-poetry@v2.3.0 | |
| with: | |
| poetry-version: 2.1.1 | |
| - name: Build bkpaas-auth | |
| run: | | |
| cd sdks/bkpaas-auth | |
| poetry install | |
| poetry build | |
| echo "${{ github.event.release.tag_name }} ${{ github.sha }}" > Release.txt | |
| cat Release.txt | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: | | |
| Release.txt | |
| sdks/bkpaas-auth/dist/* |