Skip to content

Commit

Permalink
CI: docs require (#50)
Browse files Browse the repository at this point in the history
docs requirements
  • Loading branch information
Borda authored Sep 14, 2022
1 parent 85b04df commit 4841699
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@ on:
default: 15
required: false
type: number
requirements-file:
description: 'path to the requirement file'
default: 'requirements/docs.txt'
required: false
type: string

jobs:

doctest:
docs-test:
runs-on: ubuntu-20.04

steps:
Expand All @@ -36,7 +41,7 @@ jobs:
- name: Install dependencies
run: |
pip install -e . -U -f https://download.pytorch.org/whl/cpu/torch_stable.html
pip install -r requirements/docs.txt
pip install -r ${{ inputs.requirements-file }}
python --version
pip --version
pip list
Expand All @@ -52,7 +57,7 @@ jobs:
make doctest
make coverage
build:
docs-html:
runs-on: ubuntu-20.04

steps:
Expand All @@ -66,7 +71,7 @@ jobs:

- name: Install dependencies
run: |
pip install -e . -U -r requirements/docs.txt -f https://download.pytorch.org/whl/torch_stable.html
pip install -e . -U -r ${{ inputs.requirements-file }} -f https://download.pytorch.org/whl/torch_stable.html
sudo apt-get update --fix-missing
sudo apt-get install -y texlive-latex-extra dvipng texlive-pictures
python --version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-use-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: ./.github/workflows/check-package.yml
with:
import-name: "lightning_utilities"
pypi-name: "lightning-tools"
pypi-name: "lightning-utilities" # todo: seems it does not have effect if you set it wrong

check-docs:
uses: ./.github/workflows/check-docs.yml

0 comments on commit 4841699

Please sign in to comment.