forked from OCA/OpenUpgrade
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.34 KB
/
documentation.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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: OpenUpgrade documentation
on:
push:
branches: ["13.0"]
pull_request:
jobs:
documentation:
runs-on: ubuntu-22.04
env:
DB: "openupgrade"
DB_USERNAME: "odoo"
DB_PASSWORD: "odoo"
DB_HOST: "localhost"
DB_PORT: 5432
ODOO: "./odoo-bin"
PGPASSWORD: "odoo"
PGHOST: "localhost"
PGUSER: "odoo"
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- uses: actions/checkout@v2
- name: Configuration
run: |
sudo apt update
sudo apt install libldap2-dev nodejs libxml2-dev libxslt1-dev libevent-dev libsasl2-dev expect unixodbc-dev expect-dev python3-lxml python3-simplejson python3-serial python3-yaml python3-passlib python3-psycopg2 python3-werkzeug
pip install wheel
pip install --no-build-isolation vatnumber==1.2
pip install -r requirements.txt
pip install sphinx
- name: OpenUpgrade Docs
run: |
sh scripts/build_openupgrade_docs
# try to build the documentation
pip install sphinx