Skip to content

Commit 6d3cb84

Browse files
committed
Try parallelism in py.test
Add requirements-dev.txt
1 parent 64c698b commit 6d3cb84

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/ubuntu.yml

Lines changed: 2 additions & 2 deletions
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
32-
make -j3 check
31+
pip install -r requirements-dev.txt
32+
PYTEST_WORKERS=-n3 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

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)