Update CODE_OF_CONDUCT.md from django-commons #693
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: Lint | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| tags-ignore: | |
| - '*' | |
| branches: | |
| - '*' | |
| pull_request: | |
| workflow_call: | |
| workflow_dispatch: | |
| inputs: | |
| debug: | |
| description: 'Open ssh debug session.' | |
| required: true | |
| default: false | |
| type: boolean | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # run static analysis on bleeding and trailing edges | |
| python-version: ['3.10', '3.12', '3.14'] | |
| django-version: | |
| - 'dj42' # LTS April 2026 | |
| - 'dj52' # LTS April 2028 | |
| - 'dj60' # | |
| exclude: | |
| - python-version: '3.12' | |
| django-version: 'dj42' | |
| - python-version: '3.14' | |
| django-version: 'dj42' | |
| - python-version: '3.10' | |
| django-version: 'dj52' | |
| - python-version: '3.14' | |
| django-version: 'dj52' | |
| - python-version: '3.10' | |
| django-version: 'dj60' | |
| - python-version: '3.12' | |
| django-version: 'dj60' | |
| env: | |
| TEST_PYTHON_VERSION: ${{ matrix.python-version }} | |
| TEST_DJANGO_VERSION: ${{ matrix.django-version }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 | |
| id: sp | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| allow-prereleases: true | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 | |
| with: | |
| enable-cache: false | |
| - name: Install Just | |
| uses: extractions/setup-just@f8a3cce218d9f83db3a2ecd90e41ac3de6cdfd9b | |
| - name: Install Emacs | |
| if: ${{ github.event.inputs.debug == 'true' }} | |
| run: | | |
| sudo apt install emacs | |
| - name: Setup tmate session | |
| if: ${{ github.event.inputs.debug == 'true' }} | |
| uses: mxschmitt/action-tmate@c0afd6f790e3a5564914980036ebf83216678101 | |
| timeout-minutes: 60 | |
| - name: Run Static Analysis | |
| env: | |
| PYTHON_PATH: ${{ steps.sp.outputs.python-path }} | |
| run: | | |
| just check -p "$PYTHON_PATH" --group "$TEST_DJANGO_VERSION" |