Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca committed Nov 3, 2022
1 parent e03646f commit fdff3a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .actions/setup_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,10 @@ def create_mirror_package(src_folder: str, lit_pkg_mapping: dict) -> None:
... {"pytorch": "pytorch_lightning", "app": "lightning_app", "lite": "lightning_lite"}
... )
"""
for lit_name, pkg_name in lit_pkg_mapping.items():
copy_adjusted_modules(src_folder, pkg_name, lit_name, lit_pkg_mapping)
mapping = lit_pkg_mapping.copy()
mapping.pop("lightning", None) # pop this key to avoid replacing `lightning` to `lightning.lightning`
for lit_name, pkg_name in mapping.items():
copy_adjusted_modules(src_folder, pkg_name, lit_name, mapping)


def _download_frontend(pkg_path: str):
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/docs-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,12 @@ jobs:
${{ runner.os }}-docs-make-${{ matrix.pkg-name }}-
- name: Install package & dependencies
env:
PACKAGE_NAME: ${{ matrix.pkg-name }}
run: |
sudo apt-get update
sudo apt-get install -y cmake pandoc texlive-latex-extra dvipng texlive-pictures
pip --version
# TODO: lit should be renamed to lightning
PKG_NAME=$(python -c "print('lightning' if '${{matrix.pkg-name}}' == 'lit' else '${{matrix.pkg-name}}')") \
PACKAGE_NAME=$(python -c "print('lightning' if '${{matrix.pkg-name}}' == 'lit' else '${{matrix.pkg-name}}')") \
pip install -e . \
-r requirements/${{ matrix.pkg-name }}/docs.txt \
--find-links https://download.pytorch.org/whl/cpu/torch_stable.html \
Expand Down

0 comments on commit fdff3a8

Please sign in to comment.