Skip to content

Commit 73fbfda

Browse files
committed
Remove Django 5.0; add a workaround for Python 2.7 since it's not available for github actions
1 parent a8ad85b commit 73fbfda

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/tests.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,21 @@ jobs:
120120
- {django: '==4.2.*', python: '3.10', os: 'ubuntu-latest'}
121121
- {django: '==4.2.*', python: '3.11', os: 'ubuntu-latest'}
122122

123-
- {django: '==5.0.*', python: '3.12', os: 'ubuntu-latest'}
124-
125123
steps:
126124
- uses: actions/checkout@v2
127-
- uses: actions/setup-python@v2
125+
- name: Setup Python v. >2.7
126+
if: ${{ matrix.python != '2.7' }}
127+
uses: actions/setup-python@v2
128+
with:
129+
python-version: ${{ matrix.python }}
130+
- name: Setup Python v2.7
131+
if: ${{ matrix.python == '2.7' }}
132+
uses: MatteoH2O1999/setup-python@v1
128133
with:
129134
python-version: ${{ matrix.python }}
135+
allow-build: info
136+
cache-build: true
137+
cache: pip
130138
- name: update pip
131139
run: |
132140
pip install -U wheel

0 commit comments

Comments
 (0)