Skip to content

Commit dbffa34

Browse files
authored
Merge pull request #1360 from mathics/speedup-testing
specify testing pips and have a way to run pytest in parallel
2 parents 64c698b + 3f21bb2 commit dbffa34

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

.github/workflows/osx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ jobs:
2929
make develop
3030
- name: Test Mathics
3131
run: |
32-
pip install pytest pexpect
32+
pip install -r requirements-dev.txt
3333
make -j3 check

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ jobs:
2828
make develop
2929
- name: Test Mathics
3030
run: |
31-
pip install pytest pexpect
31+
pip install -r requirements-dev.txt
3232
make -j3 check

.github/workflows/windows.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ jobs:
3131
python setup.py install
3232
- name: Test Mathics
3333
run: |
34-
pip install pytest
34+
pip install -r requirements-dev.txt
35+
set PYTEST_WORKERS="-n3"
3536
make check

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ clean:
5757

5858
#: Run py.test tests. Use environment variable "o" for pytest options
5959
pytest:
60-
py.test test $o
60+
py.test $(PYTEST_WORKERS) test $o
6161

6262

6363
#: Run a more extensive pattern-matching test

mathics/builtin/logic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ def apply(self, args, evaluation):
320320
class True_(Predefined):
321321
"""
322322
<dl>
323-
<dt>'True'
324-
<dd>represents the Boolean true value.
323+
<dt>'True'
324+
<dd>represents the Boolean true value.
325325
</dl>
326326
"""
327327

requirements-dev.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Additional packages used in testing
2+
pytest
3+
pytest-xdist
4+
pexpect

0 commit comments

Comments
 (0)