Skip to content

Commit

Permalink
Merge pull request #150 from acsone/odoo18-ci
Browse files Browse the repository at this point in the history
Test with Odoo 18
  • Loading branch information
sbidoul authored Oct 23, 2024
2 parents 72d2dae + 37d0827 commit 49d80f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
- python-version: "3.12"
toxenv: "py312-17.0"
machine: ubuntu-22.04
- python-version: "3.12"
toxenv: "py312-18.0"
machine: ubuntu-24.04
- python-version: "3.10"
toxenv: "twine_check"
machine: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# This hack is necessary because the way CliRunner patches
# stdout is not compatible with the Odoo logging initialization
# mechanism. Logging is therefore tested with subprocesses.
odoo.netsvc._logger_init = True
odoo.netsvc.init_logger = lambda: None


def _init_odoo_db(dbname, test_addons_dir=None):
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[tox]
envlist =
py312-{16.0,17.0}
py312-{16.0,17.0,18.0}
py311-{16.0,17.0}
py310-{16.0,17.0}
py38-{15.0}
Expand All @@ -23,6 +23,7 @@ commands =
15.0: {toxinidir}/tests/scripts/install_odoo.py 15.0 {envdir}/src/odoo
16.0: {toxinidir}/tests/scripts/install_odoo.py 16.0 {envdir}/src/odoo
17.0: {toxinidir}/tests/scripts/install_odoo.py 17.0 {envdir}/src/odoo
18.0: {toxinidir}/tests/scripts/install_odoo.py 18.0 {envdir}/src/odoo
pytest --verbose --cov=click_odoo_contrib --cov-branch --cov-report=html --cov-report=term --cov-report=xml {posargs}
deps =
pytest
Expand Down

0 comments on commit 49d80f2

Please sign in to comment.