Skip to content

Commit c10bad6

Browse files
committed
fix drf/django install in CI
1 parent aa3b6a0 commit c10bad6

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/test.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
drf-version: '3.14'
4747
- django-version: '5.1'
4848
drf-version: '3.14'
49-
49+
5050
steps:
5151
- uses: actions/checkout@v4
5252
- name: Set up Python ${{ matrix.python-version }}
@@ -81,24 +81,21 @@ jobs:
8181
- name: Install djangorestframework
8282
run: |
8383
poetry install -E djangorestframework
84-
poetry run pip install -U "Django~=${{ matrix.django-version }}"
85-
poetry run pip install -U "djangorestframework~=${{ matrix.drf-version }}"
84+
poetry run pip install -U "Django~=${{ matrix.django-version }}" "djangorestframework~=${{ matrix.drf-version }}"
8685
- name: Run Unit Tests w/ djangorestframework
8786
run: |
8887
poetry run pytest --cov-fail-under=30
8988
- name: Install django-filters
9089
run: |
9190
poetry install -E filters
92-
poetry run pip install -U "Django~=${{ matrix.django-version }}"
93-
poetry run pip install -U "djangorestframework~=${{ matrix.drf-version }}"
91+
poetry run pip install -U "Django~=${{ matrix.django-version }}" "djangorestframework~=${{ matrix.drf-version }}"
9492
- name: Run Unit Tests w/ django-filter
9593
run: |
9694
poetry run pytest --cov-fail-under=30
9795
- name: Install all deps
9896
run: |
9997
poetry install -E all
100-
poetry run pip install -U "Django~=${{ matrix.django-version }}"
101-
poetry run pip install -U "djangorestframework~=${{ matrix.drf-version }}"
98+
poetry run pip install -U "Django~=${{ matrix.django-version }}" "djangorestframework~=${{ matrix.drf-version }}"
10299
- name: Run Full Unit Tests
103100
run: |
104101
poetry run pytest

0 commit comments

Comments
 (0)