Skip to content

Commit 39b016b

Browse files
Bordalantiga
authored andcommitted
ci: try docs on push
1 parent d600e32 commit 39b016b

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/docs-deploy.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,16 @@ jobs:
3939
uses: actions/cache@v3
4040
with:
4141
path: ~/.cache/pip
42-
key: ${{ runner.os }}-deploy-docs-pip-${{ hashFiles('requirements/app/*.txt') }}
43-
restore-keys: |
44-
${{ runner.os }}-deploy-docs-pip-
42+
key: deploy-docs-pip-${{ hashFiles('requirements/**/*.txt') }}
43+
restore-keys: deploy-docs-pip-
4544

4645
- name: Install package & dependencies
4746
env:
4847
FREEZE_REQUIREMENTS: 1
48+
TORCH_URL: "https://download.pytorch.org/whl/cpu/torch_stable.html"
4949
run: |
5050
pip --version
51-
pip install -e . --quiet -r requirements/app/docs.txt \
52-
-f https://download.pytorch.org/whl/cpu/torch_stable.html -f pypi
51+
pip install -e . -r requirements/app/docs.txt -f ${TORCH_URL} -f pypi
5352
pip list
5453
5554
- name: Make Documentation
@@ -70,12 +69,14 @@ jobs:
7069
single-commit: true # you'd prefer to have a single commit on the deployment branch instead of full history
7170
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
7271

73-
- name: 'Authenticate to Google Cloud'
72+
- name: Authenticate to Google Cloud
73+
if: github.event_name == 'push'
7474
uses: google-github-actions/auth@v1
7575
with:
7676
credentials_json: ${{ secrets.GCS_SA_KEY }}
7777

7878
- name: Setup gcloud
79+
if: github.event_name == 'push'
7980
uses: google-github-actions/setup-gcloud@v1
8081
with:
8182
project_id: ${{ secrets.GCS_PROJECT }}

requirements/pytorch/adjust-versions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
dict(torch="1.10.2", torchvision="0.11.3"),
1515
dict(torch="1.10.1", torchvision="0.11.2"),
1616
dict(torch="1.10.0", torchvision="0.11.1"),
17-
dict(torch="1.9.1", torchvision="0.10.1"),
18-
dict(torch="1.9.0", torchvision="0.10.0"),
1917
]
2018

2119

0 commit comments

Comments
 (0)