Skip to content

Commit f176e21

Browse files
authored
Merge pull request #18 from viperior/feature/pytest-fail-faster
Faster Error Detection
2 parents 5c1abc3 + afd2275 commit f176e21

File tree

4 files changed

+33
-2
lines changed

4 files changed

+33
-2
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

requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
pylint==2.12.2
22
pytest==7.0.1
3+
pytest-xdist==2.5.0

requirements.txt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with python 3.9
2+
# This file is autogenerated by pip-compile with python 3.8
33
# To update, run:
44
#
55
# pip-compile
@@ -8,6 +8,8 @@ astroid==2.9.0
88
# via pylint
99
attrs==21.2.0
1010
# via pytest
11+
execnet==1.9.0
12+
# via pytest-xdist
1113
iniconfig==1.1.1
1214
# via pytest
1315
isort==5.10.1
@@ -23,17 +25,30 @@ platformdirs==2.4.0
2325
pluggy==1.0.0
2426
# via pytest
2527
py==1.11.0
26-
# via pytest
28+
# via
29+
# pytest
30+
# pytest-forked
2731
pylint==2.12.2
2832
# via -r requirements.in
2933
pyparsing==3.0.6
3034
# via packaging
3135
pytest==7.0.1
36+
# via
37+
# -r requirements.in
38+
# pytest-forked
39+
# pytest-xdist
40+
pytest-forked==1.4.0
41+
# via pytest-xdist
42+
pytest-xdist==2.5.0
3243
# via -r requirements.in
3344
toml==0.10.2
3445
# via pylint
3546
tomli==2.0.1
3647
# via pytest
48+
typing-extensions==4.1.1
49+
# via
50+
# astroid
51+
# pylint
3752
wrapt==1.13.3
3853
# via astroid
3954

0 commit comments

Comments
 (0)