This repository was archived by the owner on Nov 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change 2121
2222 - name : Install TorchArrow
2323 run : |
24- pip install --pre torcharrow -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
24+ pip install torcharrow
2525
2626 - name : Build the docs
2727 run : |
Original file line number Diff line number Diff line change 99 AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY :
1010 required : true
1111
12+ # Allows you to run this workflow manually from the Actions tab
13+ workflow_dispatch :
14+
1215jobs :
1316 linux-container :
1417 runs-on : ubuntu-latest
2225 - 3.9
2326 - " 3.10"
2427 steps :
25- - name : Print CPU info
26- run : cat /proc/cpuinfo
27-
2828 - name : Check out source repository
2929 uses : actions/checkout@v2
3030 with :
5656 ~/.local/bin/aws s3 cp "$pkg" "$S3_PATH" --acl public-read
5757 done
5858
59+ # We only run this part on ubuntu wheel build for python 3.7,
60+ # since we only need to deploy the doc once.
61+ - name : Install TorchArrow and build docs
62+ if : matrix.python-version == '3.7'
63+ run : |
64+ source /opt/conda/etc/profile.d/conda.sh
65+ conda activate env${{ matrix.python-version }}
66+ pip install fixed_dist/*.whl
67+ cd ./docs
68+ pip install -r requirements.txt --user
69+ PATH=${PATH}:~/.local/bin
70+ make html
71+ cd ..
72+
73+ - name : Deploy Docs on Push
74+ if : matrix.python-version == '3.7'
75+ uses : JamesIves/github-pages-deploy-action@v4.2.5
76+ with :
77+ token : ${{ secrets.GITHUB_TOKEN }}
78+ branch : gh-pages # The branch the action should deploy to.
79+ folder : docs/build/html # The folder the action should deploy.
80+ target-folder : main
81+
5982 macos-container :
6083 runs-on : macos-latest
6184 strategy :
You can’t perform that action at this time.
0 commit comments