File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -69,20 +69,32 @@ jobs:
69
69
run : |
70
70
poetry install -E djangorestframework
71
71
poetry run pip install -U "Django~=${{ matrix.django-version }}"
72
+ # Check if Django version is 4.2 or higher
73
+ if [[ "${{ matrix.django-version }}" =~ ^4\.2|^4\.3 ]]; then
74
+ poetry run pip install "djangorestframework<3.15"
75
+ fi
72
76
- name : Run Unit Tests w/ djangorestframework
73
77
run : |
74
78
poetry run pytest --cov-fail-under=30
75
79
- name : Install django-filters
76
80
run : |
77
81
poetry install -E filters
78
82
poetry run pip install -U "Django~=${{ matrix.django-version }}"
83
+ # Check if Django version is 4.2 or higher
84
+ if [[ "${{ matrix.django-version }}" =~ ^4\.2|^4\.3 ]]; then
85
+ poetry run pip install "djangorestframework<3.15"
86
+ fi
79
87
- name : Run Unit Tests w/ django-filter
80
88
run : |
81
89
poetry run pytest --cov-fail-under=30
82
90
- name : Install all deps
83
91
run : |
84
92
poetry install -E all
85
93
poetry run pip install -U "Django~=${{ matrix.django-version }}"
94
+ # Check if Django version is 4.2 or higher
95
+ if [[ "${{ matrix.django-version }}" =~ ^4\.2|^4\.3 ]]; then
96
+ poetry run pip install "djangorestframework<3.15"
97
+ fi
86
98
- name : Run Full Unit Tests
87
99
run : |
88
100
poetry run pytest
You can’t perform that action at this time.
0 commit comments