File tree 3 files changed +19
-70
lines changed
3 files changed +19
-70
lines changed Original file line number Diff line number Diff line change 12
12
jobs :
13
13
documentation-commit :
14
14
runs-on : ubuntu-22.04
15
+ container : ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest
15
16
steps :
16
- - name : Check out OpenUpgrade Documentation
17
- uses : actions/checkout@v2
18
17
19
- - name : Set up Python
20
- uses : actions/setup-python@v4
21
- with :
22
- python-version : ' 3.10'
23
- - name : Check out Odoo
24
- uses : actions/checkout@v2
25
- with :
26
- repository : odoo/odoo
27
- ref : " 16.0"
28
- fetch-depth : 1
29
- path : odoo
30
- - name : Configuration
18
+ - uses : actions/checkout@v3
19
+
20
+ # See: https://github.com/OCA/openupgradelib/pull/324#issuecomment-1556255121
21
+ - name : configure Git
31
22
run : |
32
- sudo apt update
33
- sudo apt install \
34
- expect \
35
- expect-dev \
36
- libevent-dev \
37
- libldap2-dev \
38
- libsasl2-dev \
39
- libxml2-dev \
40
- libxslt1-dev \
41
- nodejs \
42
- python3-lxml \
43
- python3-passlib \
44
- python3-psycopg2 \
45
- python3-serial \
46
- python3-simplejson \
47
- python3-werkzeug \
48
- python3-yaml \
49
- unixodbc-dev
23
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
24
+
50
25
- name : Requirements Installation
51
26
run : |
52
- pip install -r odoo/requirements.txt
53
27
pip install -e .
54
28
pip install -r ./doc_requirements.txt
29
+
55
30
- name : OpenUpgradelib Docs
56
31
run : |
57
32
# try to build the documentation
58
33
python3 -m sphinx -W -d ./docs/.doctrees ./docsource ./docs
59
34
60
35
- name : Commit changes
61
- uses : EndBug/add-and-commit@v7
36
+ uses : EndBug/add-and-commit@v9
62
37
with :
63
38
add : " docs"
64
39
default_author : github_actions
Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
documentation :
11
- runs-on : ubuntu-latest
11
+ runs-on : ubuntu-22.04
12
+ container : ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest
12
13
steps :
13
- - name : Check out OpenUpgrade Documentation
14
- uses : actions/checkout@v2
15
14
16
- - name : Set up Python
17
- uses : actions/setup-python@v4
18
- with :
19
- python-version : ' 3.10'
20
- - name : Check out Odoo
21
- uses : actions/checkout@v2
22
- with :
23
- repository : odoo/odoo
24
- ref : " 16.0"
25
- fetch-depth : 1
26
- path : odoo
27
- - name : Configuration
15
+ - uses : actions/checkout@v3
16
+
17
+ # See: https://github.com/OCA/openupgradelib/pull/324#issuecomment-1556255121
18
+ - name : configure Git
28
19
run : |
29
- sudo apt update
30
- sudo apt install \
31
- expect \
32
- expect-dev \
33
- libevent-dev \
34
- libldap2-dev \
35
- libsasl2-dev \
36
- libxml2-dev \
37
- libxslt1-dev \
38
- nodejs \
39
- python3-lxml \
40
- python3-passlib \
41
- python3-psycopg2 \
42
- python3-serial \
43
- python3-simplejson \
44
- python3-werkzeug \
45
- python3-yaml \
46
- unixodbc-dev
20
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
21
+
47
22
- name : Requirements Installation
48
23
run : |
49
- pip install -q -r odoo/requirements.txt
50
24
pip install -e .
51
25
pip install -r ./doc_requirements.txt
52
26
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ To contribute to the openupgradelib documentation:
13
13
14
14
git clone https://github.com/odoo/odoo -b 16.0 --depth=1 ./src/odoo
15
15
virtualenv env --python=python3.10
16
+ ./env/bin/pip install -r ./src/odoo/requirements.txt
16
17
./env/bin/pip install -e ./src/odoo/
17
18
./env/bin/pip install -e .
18
19
./env/bin/pip install -r ./doc_requirements.txt
@@ -24,5 +25,4 @@ To contribute to the openupgradelib documentation:
24
25
25
26
.. code :: shell
26
27
27
- . ./env/bin/activate
28
- python3 -m sphinx -W -d ./docs/.doctrees ./docsource ./docs
28
+ ./env/bin/python -m sphinx -W -d ./docs/.doctrees ./docsource ./docs
You can’t perform that action at this time.
0 commit comments