Skip to content

Commit 7859c6f

Browse files
committed
update
1 parent 9c73706 commit 7859c6f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

check_all.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#! /bin/sh
2+
set -e
3+
echo "black check"
4+
black . --check
5+
echo "mypy check"
6+
mypy tensorcircuit
7+
echo "pylint check"
8+
pylint tensorcircuit tests examples/*.py
9+
echo "pytest check"
10+
pytest -n auto --cov=tensorcircuit -vv -W ignore::DeprecationWarning
11+
# for test on gpu machine, please set `export TF_FORCE_GPU_ALLOW_GROWTH=true` for tf
12+
# and `export XLA_PYTHON_CLIENT_PREALLOCATE=false` for jax to avoid OOM in testing
13+
echo "sphinx check"
14+
cd docs && sphinx-build source build/html && sphinx-build source -D language="zh" build/html_cn
15+
echo "all checks passed, congratulation! 💐"

0 commit comments

Comments
 (0)