Skip to content

Commit 586ae4f

Browse files
ci: Workaround bug preventing Django test runs
Workaround pypa/setuptools#4519 by constraining `setuptools<72.0.0` when installing dependencies for Django tests.
1 parent f7cda1e commit 586ae4f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/test-integrations-web-frameworks-1.yml

-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ jobs:
6464
- name: Test django latest
6565
run: |
6666
set -x # print commands that are executed
67-
export PIP_CONSTRAINT=constraints.txt
6867
./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest"
6968
- name: Test flask latest
7069
run: |
@@ -141,7 +140,6 @@ jobs:
141140
- name: Test django pinned
142141
run: |
143142
set -x # print commands that are executed
144-
export PIP_CONSTRAINT=constraints.txt
145143
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-django"
146144
- name: Test flask pinned
147145
run: |

scripts/split-tox-gh-actions/templates/test_group.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@
9595
uses: codecov/test-results-action@v1
9696
with:
9797
token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %}
98-
files: .junitxml
98+
files: .junitxml

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,7 @@ setenv =
647647
PYTHONDONTWRITEBYTECODE=1
648648
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
649649
COVERAGE_FILE=.coverage-{envname}
650+
PIP_CONSTRAINTS=constraints.txt
650651
django: DJANGO_SETTINGS_MODULE=tests.integrations.django.myapp.settings
651652

652653
common: TESTPATH=tests

0 commit comments

Comments
 (0)