Merge pull request #685 from royle-vietnam/merged_from_upstream_15_20… #446
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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: Build and commit documentation | |
| on: | |
| push: | |
| branches: ["15.0"] | |
| jobs: | |
| documentation: | |
| runs-on: ubuntu-latest | |
| env: | |
| DB: "viin_upgrade" | |
| DB_HOST: "localhost" | |
| DB_PASSWORD: "viindoo" | |
| DB_PORT: 5432 | |
| DB_USERNAME: "viindoo" | |
| DOWNLOADS: https://github.com/Viindoo/OpenUpgrade/releases/download/databases | |
| ODOO: "./odoo/odoo-bin" | |
| PGHOST: "localhost" | |
| PGPASSWORD: "viindoo" | |
| PGUSER: "viindoo" | |
| steps: | |
| - name: Set up Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: 3.8 | |
| - name: Check out Viindoo/Odoo | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: Viindoo/odoo | |
| ref: "15.0" | |
| fetch-depth: 1 | |
| path: odoo | |
| - name: Check out OpenUpgrade | |
| uses: actions/checkout@v3 | |
| with: | |
| path: openupgrade | |
| - name: Configuration | |
| run: | | |
| sudo apt update | |
| sudo apt install \ | |
| expect \ | |
| expect-dev \ | |
| libevent-dev \ | |
| libldap2-dev \ | |
| libsasl2-dev \ | |
| libxml2-dev \ | |
| libxslt1-dev \ | |
| nodejs \ | |
| python3-lxml \ | |
| python3-passlib \ | |
| python3-psycopg2 \ | |
| python3-serial \ | |
| python3-simplejson \ | |
| python3-werkzeug \ | |
| python3-yaml \ | |
| unixodbc-dev | |
| - name: Requirements Installation | |
| run: | | |
| pip install -q -r odoo/requirements.txt | |
| pip install --ignore-installed \ | |
| git+https://github.com/OCA/openupgradelib.git@master | |
| pip install sphinx | |
| - name: OpenUpgrade Docs | |
| run: | | |
| # try to build the documentation | |
| sh openupgrade/build_openupgrade_docs | |
| - name: Commit changes | |
| uses: EndBug/add-and-commit@v7 | |
| with: | |
| add: "docs" | |
| cwd: "openupgrade" | |
| default_author: github_actions | |
| message: "[UPD] HTML documentation" |