diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..f8651f7f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + pull_request: + push: + +jobs: + tests: + name: "Test with python ${{ matrix.python-version }} on ${{ matrix.os }}" + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.6", "3.8"] + steps: + - uses: "actions/checkout@v2" + - uses: "actions/setup-python@v2" + with: + python-version: "${{ matrix.python-version }}" + - name: "Install dependencies" + run: python -m pip install tox tox-gh-actions + - name: "Run tox targets for ${{ matrix.python-version }}" + run: python -m tox + - name: Coveralls + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + python -m pip install coveralls + coveralls diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 369b4673..00000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -sudo: false -language: python - -python: - - "3.6" - - "3.8" - -install: - - pip install tox-travis - - pip install coveralls - -script: - - tox - -after_success: - - coveralls diff --git a/setup.py b/setup.py index 1110c96a..6d52855e 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ # We need to pin docutils version, see # https://github.com/OCA/maintainer-tools/issues/423 # Consider carefully before changing this. - 'docutils>=0.15.1,<0.15.1.1', + 'docutils==0.16.*', 'ERPpeek', 'github3.py>=1', 'inflection', diff --git a/tools/gen_addon_readme.py b/tools/gen_addon_readme.py index 9b607c19..236c19d0 100644 --- a/tools/gen_addon_readme.py +++ b/tools/gen_addon_readme.py @@ -261,6 +261,15 @@ def gen_one_addon_index(readme_filename): writer_name='html4css1', settings_overrides=RST2HTML_SETTINGS, ) + with open(index_filename, "rb") as f: + index = f.read() + # remove the docutils version from generated html, to avoid + # useless changes in the readme + index = re.sub( + rb'(