Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,8 @@ clean:
rm -rf src/lightning_fabric/*/
rm -rf src/pytorch_lightning/*/

test: clean
test: clean setup
# Review the CONTRIBUTING documentation for other ways to test.
pip install -e . \
-r requirements/pytorch/base.txt \
-r requirements/fabric/base.txt \
-r requirements/pytorch/test.txt \

# run tests with coverage
python -m coverage run --source src/lightning/pytorch -m pytest src/lightning/pytorch tests/tests_pytorch -v
Expand All @@ -59,18 +55,18 @@ test: clean

docs: docs-pytorch

sphinx-theme:
pip install -q awscli
sphinx-theme: setup
uv pip install -q awscli
mkdir -p dist/
aws s3 sync --no-sign-request s3://sphinx-packages/ dist/
pip install lai-sphinx-theme -f dist/
uv pip install lai-sphinx-theme -f dist/

docs-fabric: clean sphinx-theme
pip install -e .[all] --quiet -r requirements/fabric/docs.txt
uv pip install -e '.[all]' --quiet -r requirements/fabric/docs.txt
cd docs/source-fabric && $(MAKE) html --jobs $(nproc)

docs-pytorch: clean sphinx-theme
pip install -e .[all] --quiet -r requirements/pytorch/docs.txt
uv pip install -e '.[all]' --quiet -r requirements/pytorch/docs.txt
cd docs/source-pytorch && $(MAKE) html --jobs $(nproc)

update:
Expand Down