|
7 | 7 | push: |
8 | 8 | tags-ignore: |
9 | 9 | - '*' |
10 | | - branches: |
11 | | - - '*' |
| 10 | + branches: ['main'] |
12 | 11 | pull_request: |
| 12 | + branches: ['main'] |
13 | 13 | workflow_call: |
14 | 14 | workflow_dispatch: |
15 | 15 | inputs: |
|
41 | 41 | - '4.2' # LTS April 2026 |
42 | 42 | - '5.1' # December 2025 |
43 | 43 | - '5.2' # LTS April 2028 |
| 44 | + - '6.0a1' # alpha prerelease |
44 | 45 | exclude: |
45 | 46 | - django-version: '4.2' |
46 | 47 | postgres-version: '9.6' |
|
91 | 92 | # https://github.com/psycopg/psycopg2/pull/1695 |
92 | 93 | - python-version: '3.14' |
93 | 94 | psycopg-version: 'psycopg2' |
| 95 | + |
| 96 | + - postgres-version: '9.6' |
| 97 | + django-version: '6.0a1' |
| 98 | + - postgres-version: '12' |
| 99 | + django-version: '6.0a1' |
| 100 | + - python-version: '3.9' |
| 101 | + django-version: '6.0a1' |
| 102 | + - python-version: '3.10' |
| 103 | + django-version: '6.0a1' |
| 104 | + - python-version: '3.11' |
| 105 | + django-version: '6.0a1' |
| 106 | + - python-version: '3.12' |
| 107 | + django-version: '6.0a1' |
| 108 | + - python-version: '3.13' |
| 109 | + django-version: '6.0a1' |
94 | 110 |
|
95 | 111 | env: |
96 | 112 | RDBMS: postgres |
@@ -138,9 +154,17 @@ jobs: |
138 | 154 | - name: Setup Just |
139 | 155 | uses: extractions/setup-just@v3 |
140 | 156 | - name: Install Release Dependencies |
| 157 | + shell: bash |
141 | 158 | run: | |
142 | 159 | just setup ${{ steps.sp.outputs.python-path }} |
143 | | - just test-lock "Django~=${{ matrix.django-version }}.0" |
| 160 | + DJANGO_VERSION="${{ matrix.django-version }}" |
| 161 | + if [[ "$DJANGO_VERSION" =~ (a|b|rc) ]]; then |
| 162 | + # prerelease, use exact version pin |
| 163 | + just test-lock Django==${{ matrix.django-version }} |
| 164 | + else |
| 165 | + # stable release, use compatible release specifier |
| 166 | + just test-lock Django~=${{ matrix.django-version }}.0 |
| 167 | + fi |
144 | 168 | - name: Install Emacs |
145 | 169 | if: ${{ github.event.inputs.debug == 'true' }} |
146 | 170 | run: | |
@@ -315,6 +339,7 @@ jobs: |
315 | 339 | - name: Setup Just |
316 | 340 | uses: extractions/setup-just@v3 |
317 | 341 | - name: Install Release Dependencies |
| 342 | + shell: bash |
318 | 343 | run: | |
319 | 344 | just setup ${{ steps.sp.outputs.python-path }} |
320 | 345 | just test-lock Django~=${{ matrix.django-version }}.0 |
|
0 commit comments