thomasahle / sunfish

Sunfish: a Python Chess Engine in 111 lines of code
https://www.chessprogramming.org/Sunfish
Other
2.95k stars 543 forks source link

CI set up Pypy 3.9 #96

Closed ddugovic closed 1 year ago

ddugovic commented 1 year ago

I'm not entirely sure how to run tools/quick_tests.sh , but this should fix some GitHub Actions CI errors.

thomasahle commented 1 year ago

quick_test runs tester.py with different arguments. All but the last two tests should complete with 100% correct results. It uses the tqdm library to show progress. But I guess we need the correctness to be computationally checkable, so quick_test needs to be converted to pytest or something?

ddugovic commented 1 year ago

Using pytest isn't required; it's possible to run tests via any command, although it might be easier to understand results if tests are formatted like https://docs.pytest.org/en/7.2.x/ so pytest may easily discover them.

On my PC, quick_tests doesn't work?

➜  sunfish git:(master) bash ./tools/quick_tests.sh
./tools
Perft
./tools/quick_tests.sh: line 10: $1: unbound variable
thomasahle commented 1 year ago

You need to add the path to sunfish. Like this "tools/quick_test.sh ./sunfish.py"