Skip to content

Commit 7afdff2

Browse files
committed
Replace deprecated 'python setup.py test' with modern pytest
1 parent c6699f6 commit 7afdff2

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
run: |
8282
python -m pip install -U pip
8383
python -m pip install -U wheel
84+
python -m pip install -U pytest
8485
python -m pip install "numpy==${{ matrix.numpy-version }}"
8586
8687
- name: Install
@@ -89,5 +90,5 @@ jobs:
8990
9091
- name: Test
9192
run: |
92-
python setup.py test
93+
pytest
9394
python -m doctest README.rst

README.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,16 @@ If you install it system-wide, you may need to prefix the previous command with
6262

6363
Tests
6464
-----
65-
To execute all tests, run::
65+
To execute all tests, install pytest::
6666

67-
$ python setup.py test
67+
$ python -m pip install pytest
68+
69+
And run::
70+
71+
$ pytest
6872

6973
in the current directory. The master branch is automatically tested by
70-
Travis CI.
74+
GitHub Actions.
7175

7276
Author
7377
------

0 commit comments

Comments
 (0)