Fix make test (#14273)

This commit is contained in:
Rohit Gupta 2022-08-24 00:58:53 +05:30 committed by GitHub
parent 9040b1ed2c
commit 5661458bf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,8 @@
export SLURM_LOCALID=0
# assume you have installed need packages
export SPHINX_MOCK_REQUIREMENTS=1
# install only Lightning Trainer packages
export PACKAGE_NAME=pytorch
clean:
# clean all temp runs
@ -31,7 +33,7 @@ test: clean
pip install -e . -r requirements/pytorch/devel.txt
pip install -r requirements/pytorch/strategies.txt
# run tests with coverage
python -m coverage run --source pytorch_lightning -m pytest pytorch_lightning tests -v
python -m coverage run --source src/pytorch_lightning -m pytest src/pytorch_lightning tests/tests_pytorch -v
python -m coverage report
docs: clean