Skip to content

Commit 5fc6226

Browse files
committed
ci: fix github actions
1 parent 401bb15 commit 5fc6226

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
build:
1010
name: Python ${{ matrix.python-version }}
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-20.04
1212

1313
strategy:
1414
matrix:
@@ -35,7 +35,6 @@ jobs:
3535
- name: Install dependencies
3636
run: |
3737
python -m pip install --upgrade pip
38-
pip install flake8 pytest
3938
if [ -f requirements/dev.txt ]; then pip install -r requirements/dev.txt; fi
4039
4140
- name: Lint with flake8
@@ -47,4 +46,5 @@ jobs:
4746
4847
- name: Test with pytest
4948
run: |
50-
pytest
49+
python -m pytest -v -s --cov=nested_multipart_parser --cov-report=xml --capture=tee-sys ./tests
50+
python -m coverage report -m

requirements/dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ Django
33
djangorestframework
44

55
pytest
6-
pytest-cov
6+
pytest-cov
7+
flake8

0 commit comments

Comments
 (0)