fix scheduled dependencies to auto upgrade #198
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: ['main'] | |
| pull_request: | |
| branches: ['main'] | |
| workflow_call: | |
| workflow_dispatch: | |
| inputs: | |
| debug: | |
| description: 'Open ssh debug session.' | |
| required: true | |
| default: false | |
| type: boolean | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.12', '3.14'] | |
| django-version: | |
| - '4.2' # LTS April 2026 | |
| - '5.2' # LTS April 2028 | |
| - '6.0rc1' # April 2027 | |
| exclude: | |
| - python-version: '3.12' | |
| django-version: '4.2' | |
| - python-version: '3.14' | |
| django-version: '4.2' | |
| - python-version: '3.10' | |
| django-version: '5.2' | |
| - python-version: '3.14' | |
| django-version: '5.2' | |
| - python-version: '3.10' | |
| django-version: '6.0rc1' | |
| - python-version: '3.12' | |
| django-version: '6.0rc1' | |
| env: | |
| TEST_PYTHON_VERSION: ${{ matrix.python-version }} | |
| TEST_DJANGO_VERSION: ${{ matrix.django-version }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| id: sp | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install Just | |
| uses: extractions/setup-just@v3 | |
| - name: Install Dependencies | |
| run: | | |
| just setup ${{ steps.sp.outputs.python-path }} | |
| if [[ "${{ matrix.django-version }}" =~ (a|b|rc) ]]; then | |
| just test-lock Django==${{ matrix.django-version }} | |
| else | |
| just test-lock Django~=${{ matrix.django-version }}.0 | |
| fi | |
| just install | |
| - 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@v3.23 | |
| with: | |
| detached: true | |
| timeout-minutes: 60 | |
| - name: Run Static Analysis | |
| run: | | |
| just test ./tests/verify_environment.py | |
| just check-lint | |
| just check-format | |
| just check-types | |
| just check-package | |
| just check-readme |