Skip to content

Commit

Permalink
undo unnecessary nose -> pynose changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gherceg committed Nov 18, 2023
1 parent 7478892 commit 68bd916
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:
pip install django pynose coverage
- name: Run coverage
run: |
coverage run -m nose
# .coverage.* files are ignored by git
pynose --with-coverage --cover-erase --cover-package=field_audit | tee .coverage.out
coverage report -m | tee .coverage.out
percent=$(grep -E '^TOTAL\s.+\s[0-9]{1,3}%$' .coverage.out \
| awk '{gsub("%$", "", $NF); print($NF)}')
python scripts/make-coverage-badge.py -o .coverage.svg "$percent"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
"HOST":"localhost",
"PORT":"5432"
}
run: pynose -v --with-coverage --cover-branches --cover-package=field_audit
run: nosetests -v --with-coverage --cover-branches --cover-package=field_audit
continue-on-error: ${{ matrix.experimental }}
- name: Check migrations
run: |
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ your local Python's `sqlite3` library ships with the `JSON1` extension enabled

- Coverage
```shell
pynose --with-coverage --cover-erase --cover-package field_audit
coverage run -m nose
coverage report -m
```

### Adding migrations
Expand Down

0 comments on commit 68bd916

Please sign in to comment.