File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
build_documentation :
13
- runs-on : ubuntu-latest
13
+ runs-on : ubuntu-22.04
14
14
15
15
steps :
16
16
- uses : actions/checkout@v2
66
66
sudo apt-get purge -y '^mysql.*'
67
67
sudo apt-get purge -y '^java.*'
68
68
sudo apt-get purge -y '^openjdk.*'
69
- sudo apt-get purge -y microsoft-edge-stable google-cloud-cli azure-cli google-chrome-stable firefox powershell mono-devel
69
+ sudo apt-get purge -y microsoft-edge-stable azure-cli google-chrome-stable firefox mono-devel
70
70
df -h
71
71
sudo apt-get autoremove -y >/dev/null 2>&1
72
72
sudo apt-get clean
@@ -110,6 +110,8 @@ jobs:
110
110
111
111
- name : Setup environment
112
112
run : |
113
+ python -m venv venv-doc
114
+ source venv-doc/bin/activate
113
115
pip uninstall -y doc-builder
114
116
cd doc-builder
115
117
git pull origin main
@@ -135,6 +137,7 @@ jobs:
135
137
136
138
- name : Make Furiosa documentation
137
139
run : |
140
+ source venv-doc/bin/activate
138
141
cd optimum-furiosa
139
142
pip install .
140
143
sudo apt install software-properties-common
@@ -159,6 +162,7 @@ jobs:
159
162
- name : Make TPU documentation
160
163
run : |
161
164
sudo docker system prune -a -f
165
+ source venv-doc/bin/activate
162
166
cd optimum-tpu
163
167
pip install -U pip
164
168
pip install . -f https://storage.googleapis.com/libtpu-releases/index.html
Original file line number Diff line number Diff line change 8
8
- " optimum/**.py"
9
9
- " docs/**.mdx"
10
10
- " docs/**.yml"
11
+ - " .github/workflows/build_pr_documentation.yml"
11
12
12
13
concurrency :
13
14
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14
15
cancel-in-progress : true
15
16
16
17
jobs :
17
18
build_documentation :
18
- runs-on : ubuntu-latest
19
+ runs-on : ubuntu-22.04
19
20
env :
20
21
COMMIT_SHA : ${{ github.event.pull_request.head.sha }}
21
22
PR_NUMBER : ${{ github.event.number }}
60
61
61
62
- name : Setup environment
62
63
run : |
64
+ python -m venv venv-doc
65
+ source venv-doc/bin/activate
63
66
pip uninstall -y doc-builder
64
67
cd doc-builder
65
68
git pull origin main
99
102
- name : Make TPU documentation
100
103
run : |
101
104
sudo docker system prune -a -f
105
+ source venv-doc/bin/activate
102
106
cd optimum-tpu
103
107
pip install -U pip
104
108
pip install . -f https://storage.googleapis.com/libtpu-releases/index.html
You can’t perform that action at this time.
0 commit comments