This repository was archived by the owner on Nov 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +60
-101
lines changed Expand file tree Collapse file tree 3 files changed +60
-101
lines changed Original file line number Diff line number Diff line change @@ -54,17 +54,16 @@ jobs:
54
54
id : poetry-cache
55
55
with :
56
56
path : ~/.local
57
- key : key-1
57
+ key : key-3
58
58
- name : Install poetry
59
59
uses : snok/install-poetry@v1
60
60
with :
61
- version : 1.2.0a2
62
61
virtualenvs-create : false
63
62
- uses : actions/cache@v2
64
63
id : cache-venv
65
64
with :
66
65
path : .venv
67
- key : ${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}-1
66
+ key : ${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}-2
68
67
- run : |
69
68
pip install virtualenv
70
69
virtualenv .venv
@@ -76,23 +75,16 @@ jobs:
76
75
run : |
77
76
source .venv/bin/activate
78
77
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"
85
78
- name : Run tests
86
79
run : |
87
80
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
90
82
- name : Archive coverage
91
83
uses : actions/upload-artifact@v2
92
84
with :
93
85
name : coverage-xml
94
86
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 '
96
88
coverage :
97
89
needs : test
98
90
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments