Skip to content

Commit 4c1bd05

Browse files
committed
Receive pytest failure status more quickly
Detect errors in the test suite run more quickly by executing the test cases asynchronously and halting on the first error encountered (closes #12)
1 parent 5c1abc3 commit 4c1bd05

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/python-app.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
2828
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
2929
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
30+
- name: Test with pytest (quick)
31+
run: |
32+
pytest -v -x -n auto
3033
- name: Test with pytest
3134
run: |
3235
pytest -v

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## [0.5.0](https://github.com/viperior/python-project-template/tree/v0.5.0) (2022-02-25)
4+
5+
### Improvements
6+
7+
* Fail faster when running the `pytest` test suite by running the test suite asynchronously and halting on the first error encountered using pytest's `-x` option (closes [#12][i12])
8+
* Bump pylint from 2.12.1 to 2.12.2 ([#16][p16])
9+
* Bump pytest from 6.2.5 to 7.0.1 ([#17][p17])
10+
11+
[i12]: https://github.com/viperior/python-project-template/issues/12
12+
[p16]: https://github.com/viperior/python-project-template/pull/16
13+
[p17]: https://github.com/viperior/python-project-template/pull/17
14+
315
## [0.4.0](https://github.com/viperior/python-project-template/tree/v0.4.0) (2022-02-25)
416

517
### New features

0 commit comments

Comments
 (0)