Skip to content

Commit 56b4dfd

Browse files
Bordalantiga
authored andcommitted
ci: fix docs with caches (#17200)
1 parent 966c53b commit 56b4dfd

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/docs-build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY_ID }}
5656
aws-region: us-east-1
5757

58-
- run: aws s3 sync s3://sphinx-packages/ pypi/
58+
- run: aws s3 sync s3://sphinx-packages/ pypi_pkgs/
5959
if: ${{ matrix.pkg-name != 'pytorch' }}
6060

6161
- name: pip wheels cache
@@ -66,9 +66,10 @@ jobs:
6666

6767
- name: Install package
6868
run: |
69-
mkdir -p $PYPI_CACHE
7069
ls -lh $PYPI_CACHE
71-
pip install -e .[extra,cloud,ui] -U -r requirements/${{ matrix.pkg-name }}/docs.txt -f pypi -f ${TORCH_URL}
70+
mkdir -p pypi_pkgs
71+
pip install .[extra,cloud,ui] -U -r requirements/${{ matrix.pkg-name }}/docs.txt \
72+
-f pypi_pkgs/ -f $PYPI_CACHE -f ${TORCH_URL}
7273
pip list
7374
7475
- name: Test Documentation
@@ -101,7 +102,7 @@ jobs:
101102
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY_ID }}
102103
aws-region: us-east-1
103104

104-
- run: aws s3 sync s3://sphinx-packages/ pypi/
105+
- run: aws s3 sync s3://sphinx-packages/ pypi_pkgs/
105106
if: ${{ matrix.pkg-name != 'pytorch' }}
106107

107108
- name: pip wheels cache
@@ -112,18 +113,19 @@ jobs:
112113

113114
- name: Install package & dependencies
114115
run: |
115-
mkdir -p $PYPI_CACHE
116116
ls -lh $PYPI_CACHE
117+
mkdir -p pypi_pkgs
117118
pip --version
118-
pip install -e . -U -r requirements/${{ matrix.pkg-name }}/docs.txt -f pypi -f ${TORCH_URL}
119+
pip install . -U -r requirements/${{ matrix.pkg-name }}/docs.txt \
120+
-f pypi_pkgs/ -f $PYPI_CACHE -f ${TORCH_URL}
119121
pip list
120122
shell: bash
121123

122124
- name: Make Documentation
123125
working-directory: ./docs/source-${{ matrix.pkg-name }}
124126
run: make html --debug --jobs $(nproc) SPHINXOPTS="-W --keep-going"
125127

126-
- name: Check External Links in Sphinx Documentation (Optional)
128+
- name: Check External Links (Optional)
127129
working-directory: ./docs/source-${{ matrix.pkg-name }}
128130
run: make linkcheck
129131
continue-on-error: true

0 commit comments

Comments
 (0)