forked from eecs485staff/madoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
32 lines (30 loc) · 841 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Local host configuration with one Python 3 version
[tox]
envlist = py37, py38, py39, py310, py311
# GitHub Actions configuration with multiple Python versions
# https://github.com/ymyzk/tox-gh-actions#tox-gh-actions-configuration
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
# Run unit tests
# HACK: Pydocstyle fails to find tests. Invoke a shell to use a glob.
[testenv]
setenv =
PYTHONPATH = {toxinidir}
allowlist_externals =
sh
diff
extras = dev
commands =
diff -r madoop/example/input tests/testdata/word_count/input/
diff -r madoop/example/map.py tests/testdata/word_count/map.py
diff -r madoop/example/reduce.py tests/testdata/word_count/reduce.py
pycodestyle madoop tests
sh -c "pydocstyle madoop tests/*"
pylint madoop tests
check-manifest
pytest -vvs --cov madoop