Closed akaps closed 3 years ago
Current failures:
Run pytest
============================= test session starts ==============================
platform linux -- Python 3.8.7, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/runner/work/hanabi_ai/hanabi_ai
collected 73 items / 2 errors / 71 selected
==================================== ERRORS ====================================
_____________________ ERROR collecting tests/test_game.py ______________________
ImportError while importing test module '/home/runner/work/hanabi_ai/hanabi_ai/tests/test_game.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.8.7/x64/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_game.py:3: in <module>
from hanabi_ai.play_game import HanabiGame
hanabi_ai/play_game.py:16: in <module>
matplotlib.use('TkAgg')
/opt/hostedtoolcache/Python/3.8.7/x64/lib/python3.8/site-packages/matplotlib/__init__.py:1171: in use
plt.switch_backend(name)
/opt/hostedtoolcache/Python/3.8.7/x64/lib/python3.8/site-packages/matplotlib/pyplot.py:284: in switch_backend
raise ImportError(
E ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'headless' is currently running
___________________ ERROR collecting tests/test_play_game.py ___________________
ImportError while importing test module '/home/runner/work/hanabi_ai/hanabi_ai/tests/test_play_game.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.8.7/x64/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_play_game.py:2: in <module>
import hanabi_ai.play_game as play_game
hanabi_ai/play_game.py:16: in <module>
matplotlib.use('TkAgg')
/opt/hostedtoolcache/Python/3.8.7/x64/lib/python3.8/site-packages/matplotlib/__init__.py:1171: in use
plt.switch_backend(name)
/opt/hostedtoolcache/Python/3.8.7/x64/lib/python3.8/site-packages/matplotlib/pyplot.py:284: in switch_backend
raise ImportError(
E ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'headless' is currently running
=========================== short test summary info ============================
ERROR tests/test_game.py
ERROR tests/test_play_game.py
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 2 errors in 1.48s ===============================
Run pytest locally and most test cases fail
the random module for python 3 generates different values with the same seed. Have fun :)