chore(deps): update dependency @descope/web-component to v4 #944
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: | |
| schedule: | |
| - cron: "0 8 * * *" | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| matrix: | |
| name: Build test matrix | |
| runs-on: ubuntu-latest | |
| permissions: {} | |
| outputs: | |
| test-matrix: ${{ steps.matrix.outputs.test-matrix }} | |
| steps: | |
| - name: Build Django/Python support matrix | |
| id: matrix | |
| run: | | |
| python - <<'PY' >> "$GITHUB_OUTPUT" | |
| import json | |
| support = [ | |
| ("3.2", "Django>=3.2.25,<3.3", ["3.9", "3.10"]), | |
| ("4.0", "Django>=4.0,<4.1", ["3.9", "3.10"]), | |
| ("4.1", "Django>=4.1,<4.2", ["3.9", "3.10", "3.11"]), | |
| ("4.2", "Django>=4.2,<4.3", ["3.9", "3.10", "3.11", "3.12"]), | |
| ("5.0", "Django>=5.0,<5.1", ["3.10", "3.11", "3.12"]), | |
| ("5.1", "Django>=5.1,<5.2", ["3.10", "3.11", "3.12", "3.13"]), | |
| ("5.2", "Django>=5.2,<5.3", ["3.10", "3.11", "3.12", "3.13", "3.14"]), | |
| ("6.0", "Django>=6.0,<6.1", ["3.12", "3.13", "3.14"]), | |
| ("main", "https://github.com/django/django/archive/main.tar.gz", ["3.14"]), | |
| ] | |
| rows = [ | |
| {"django-version": django, "django-spec": spec, "python-version": python} | |
| for django, spec, pythons in support | |
| for python in pythons | |
| ] | |
| print(f"test-matrix={json.dumps({'include': rows})}") | |
| PY | |
| lint: | |
| name: Lint and build | |
| runs-on: ubuntu-latest | |
| permissions: {} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2 | |
| with: | |
| enable-cache: true | |
| python-version: "3.14" | |
| - name: Install dependencies | |
| run: uv sync --locked | |
| - name: Ruff lint | |
| run: uv run ruff check . | |
| - name: Ruff format | |
| run: uv run ruff format --check . | |
| - name: License check | |
| run: uv run licensecheck --groups dev --zero | |
| - name: Build package | |
| run: uv build | |
| test: | |
| name: Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }} | |
| needs: matrix | |
| runs-on: ubuntu-latest | |
| permissions: {} | |
| continue-on-error: ${{ matrix.django-version == 'main' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{ fromJson(needs.matrix.outputs.test-matrix) }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2 | |
| with: | |
| enable-cache: true | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run tests | |
| run: | | |
| uv run --locked --with "${{ matrix.django-spec }}" --with python-dotenv --with django-debug-toolbar python manage.py test | |
| env: | |
| DESCOPE_PROJECT_ID: P2ZRsmAQw8MKG78knGZ9GXWRqxM5 | |
| DESCOPE_MANAGEMENT_KEY: ${{ secrets.DESCOPE_MANAGEMENT_KEY }} | |
| done: | |
| name: Build Matrix Complete | |
| needs: [matrix, lint, test] | |
| runs-on: ubuntu-latest | |
| permissions: {} | |
| if: always() | |
| steps: | |
| - name: Fail if any dependency failed or was cancelled | |
| if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') | |
| run: exit 1 | |
| - name: Done | |
| run: echo "Done" |