Skip to content

Commit 68858f6

Browse files
committed
Improve test running
This commit contains multiple related changes: - Update `dev` dependencies as much as possible - The pinned versions did not work with Python 3.11, but using the latest versions does not work with Python 3.7. The new versions work for both Python 3.7 and 3.11. - Pin `black` and `isort` versions - Unlike the other `dev` dependencies, which are specified with `==`, these two dependencies were specified with `>=`. I pinned these to specific versions to match the other dependencies and limit breakage. - Update `pip` in `test-pr.yml` - The version of `pip` shipped in GitHub Actions shows warnings that are fixed by upgrading to the latest supported version.
1 parent 7f6dcca commit 68858f6

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/test-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
python-version: "3.7"
1818
- name: Install daidepp
1919
run: |
20+
pip install -U pip
2021
pip install -e .[dev]
2122
- name: Test
2223
run: |

setup.cfg

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ where = src
2121

2222
[options.extras_require]
2323
dev =
24-
black>=22.8.0
25-
docformatter==1.4
26-
isort>=5.10.1
27-
pydocstyle==6.1.1
28-
pylint==2.12.2
29-
pytest==7.0.0
30-
pytest-black==0.3.12
31-
pytest-cov==3.0.0
32-
pytest-dependency==0.5.1
33-
pytest-mypy==0.9.1
34-
pytest-timeout==2.1.0
24+
black==23.3.0
25+
docformatter==1.7.5
26+
isort==5.11.5
27+
pydocstyle==6.3.0
28+
pylint==2.17.7
29+
pytest==7.4.4
30+
pytest-black==0.6.0
31+
pytest-cov==4.1.0
32+
pytest-dependency==0.6.0
33+
pytest-mypy==0.10.3
34+
pytest-timeout==2.3.1
3535

3636
[isort]
3737
multi_line_output = 3

0 commit comments

Comments
 (0)