-
Notifications
You must be signed in to change notification settings - Fork 6
66 lines (52 loc) · 1.85 KB
/
sphinx.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Sphinx
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
environment: deployment
steps:
- name: Install cuda
run: |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
sudo apt-get update
sudo apt-get -y install cuda-11.8
- name: Install fftw
run: sudo apt-get install libfftw3-dev
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 black mypy types-PyYAML pytest pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
export CUDACXX=/usr/local/cuda-11/bin/nvcc
python -m pip install -e .
- name: Install documentation dependencies
run: |
pip install .[build_sphinx]
- name: Build documentation
run: |
sphinx-build docs/source docs/build
cp -rv docs/build/* docs/
- name: Publish to Github pages
env:
USER_EMAIL: "t1000@skynet.ai"
USER_NAME: "github-actions"
run: |
git checkout -b gh-pages-temp
git config user.name ${USER_NAME}
git config user.email ${USER_EMAIL}
git add -A
git commit -m "Deploy documentation"
git push -f origin HEAD:gh-pages