.PHONY: install test unit meta regression verify tournaments lint clean

install:
	python -m pip install --upgrade pip
	pip install -e .
	pip install pytest pyyaml

test: unit meta regression verify

unit:
	pytest tests/unit -q

meta:
	pytest tests/meta -q

regression:
	pytest tests/regression -q

verify:
	python scripts/verify_exploit_coverage.py

tournaments:
	python -m fable_selfplay.cli run --config configs/tournaments/T1.yaml
	python -m fable_selfplay.cli run --config configs/tournaments/T2.yaml
	python -m fable_selfplay.cli run --config configs/tournaments/T3.yaml

clean:
	rm -rf .pytest_cache build dist *.egg-info src/*.egg-info
	find . -type d -name __pycache__ -prune -exec rm -rf {} +
