This repository was archived by the owner on May 9, 2026. It is now read-only.
examples: add 6 standalone Django example applications #14
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: [master, main] | |
| pull_request: | |
| branches: [master, main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| django-version: ["4.2", "5.0", "5.1"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Install dependencies | |
| run: | | |
| uv pip install --system "django==${{ matrix.django-version }}.*" \ | |
| ".[dev]" | |
| - name: Run tests with coverage | |
| run: | | |
| coverage run -m pytest tests/ -v | |
| coverage report --fail-under=80 | |
| - name: Upload coverage report | |
| if: matrix.python-version == '3.12' && matrix.django-version == '5.1' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: .coverage | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Install ruff | |
| run: uv pip install --system ruff | |
| - name: Run ruff | |
| run: ruff check djangosdk/ |