Skip to content

Commit

Permalink
Update test scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
ShangtongZhang committed Aug 11, 2018
1 parent 591dbd8 commit 502e5fc
Show file tree
Hide file tree
Showing 19 changed files with 12 additions and 114 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: python
python:
- "2.7"
- "3.5"
- "3.6"
install:
- pip install tox tox-travis
script:
Expand Down
5 changes: 0 additions & 5 deletions chapter01/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions chapter02/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions chapter03/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions chapter04/__init__.py

This file was deleted.

39 changes: 0 additions & 39 deletions chapter04/grid_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,42 +99,3 @@ def figure_4_1():

if __name__ == '__main__':
figure_4_1()







































5 changes: 0 additions & 5 deletions chapter05/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions chapter06/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions chapter07/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions chapter08/__init__.py

This file was deleted.

6 changes: 3 additions & 3 deletions chapter08/maze.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,8 +651,8 @@ def example_8_4():
plt.close()

if __name__ == '__main__':
# figure_8_2()
# figure_8_4()
# figure_8_5()
figure_8_2()
figure_8_4()
figure_8_5()
example_8_4()

5 changes: 0 additions & 5 deletions chapter09/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions chapter10/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions chapter11/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions chapter12/__init__.py

This file was deleted.

4 changes: 2 additions & 2 deletions chapter13/short_corridor.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,6 @@ def figure_13_2():
plt.close()

if __name__ == '__main__':
# example_13_1()
# figure_13_1()
example_13_1()
figure_13_1()
figure_13_2()
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy
matplotlib
six
seaborn
seaborn
tqdm
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def setup_package():
classifiers=[],
test_suite='',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
install_requires=['numpy', 'matplotlib', 'six', 'seaborn'],
install_requires=['numpy', 'matplotlib', 'tqdm', 'seaborn'],
setup_requires=[],
cmdclass=cmdclass,
tests_require=['pytest'],
Expand Down
8 changes: 3 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
[tox]
envlist = py27,py34,py35
envlist = py36
deps = -rrequirements.txt

[travis]
python =
2.7: py27
3.4: py34
3.5: py35
3.6: py36

[testenv]
commands = python -m compileall -q chapter01 chapter02 chapter03 chapter04 chapter05 chapter06 chapter07 chapter08 chapter09 chapter10 chapter11 chapter12
commands = ls chapter*/*.py | xargs -n 1 -P 1 python

0 comments on commit 502e5fc

Please sign in to comment.