Skip to content

chore(deps): update dependency ruff to v0.15.22 #935

chore(deps): update dependency ruff to v0.15.22

chore(deps): update dependency ruff to v0.15.22 #935

Workflow file for this run

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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- 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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- 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"