Skip to content

Commit 71dfaba

Browse files
committed
a django-filter release that doesn't support 3.2 broke CI
1 parent e323450 commit 71dfaba

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
poetry run pip install --upgrade pip
4747
poetry install -E all
4848
poetry run pip install -U "Django~=${{ matrix.django-version }}"
49+
- name: Conditionally Install django-filter
50+
run: |
51+
if [ $(echo "${{ matrix.django-version }}" | awk '{print ($1 < 4.2)}') -eq 1 ]; then
52+
poetry run pip install -U "django-filter~=23.5"
53+
fi
4954
- name: Run Static Analysis
5055
run: |
5156
poetry run isort django_enum --check

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ jobs:
103103
run: |
104104
poetry install -E filters
105105
poetry run pip install -U "Django~=${{ matrix.django-version }}"
106+
- name: Conditionally Install django-filter
107+
run: |
108+
if [ $(echo "${{ matrix.django-version }}" | awk '{print ($1 < 4.2)}') -eq 1 ]; then
109+
poetry run pip install -U "django-filter~=23.5"
110+
fi
106111
- name: Run Unit Tests w/ django-filter
107112
run: |
108113
poetry run pytest --cov-append

0 commit comments

Comments
 (0)