Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Commit 340bfd2

Browse files
committed
chore: Remove Django 2.2-specific DRF install, and clean up coverage report
1 parent 37b2633 commit 340bfd2

File tree

3 files changed

+60
-101
lines changed

3 files changed

+60
-101
lines changed

.github/workflows/testing.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,16 @@ jobs:
5454
id: poetry-cache
5555
with:
5656
path: ~/.local
57-
key: key-1
57+
key: key-3
5858
- name: Install poetry
5959
uses: snok/install-poetry@v1
6060
with:
61-
version: 1.2.0a2
6261
virtualenvs-create: false
6362
- uses: actions/cache@v2
6463
id: cache-venv
6564
with:
6665
path: .venv
67-
key: ${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}-1
66+
key: ${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}-2
6867
- run: |
6968
pip install virtualenv
7069
virtualenv .venv
@@ -76,23 +75,16 @@ jobs:
7675
run: |
7776
source .venv/bin/activate
7877
pip install "Django==${{ matrix.django-version }}"
79-
- run: |
80-
source .venv/bin/activate
81-
pip install coverage[toml]
82-
- name: Install DRF 3.11 on Django 2.2
83-
if: matrix.django-version == '2.2'
84-
run: pip install "djangorestframework==3.11.1"
8578
- name: Run tests
8679
run: |
8780
source .venv/bin/activate
88-
poetry run pytest --cov=. --cov-report=xml
89-
poetry run coverage report
81+
pytest --cov=. --cov-report xml --cov-report term-missing
9082
- name: Archive coverage
9183
uses: actions/upload-artifact@v2
9284
with:
9385
name: coverage-xml
9486
path: coverage.xml
95-
if: matrix.python-version == '3.10' && matrix.django-version == '3.2'
87+
if: matrix.python-version == '3.10' && matrix.django-version == '4.0'
9688
coverage:
9789
needs: test
9890
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)