diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f447421..ae94cc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,8 @@ jobs: os: ubuntu-latest - PYTHON_VERSION: "3.12" os: ubuntu-latest + - PYTHON_VERSION: "3.13" + os: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up Python diff --git a/pytest_odoo.py b/pytest_odoo.py index 0a6b0e5..1350a45 100644 --- a/pytest_odoo.py +++ b/pytest_odoo.py @@ -19,7 +19,9 @@ import pytest import odoo - +from odoo import release +if odoo.release.version_info >= (19,0): + import odoo.tools, odoo.service, odoo.release, odoo.api, odoo.tests, odoo.sql_db, odoo.modules def pytest_addoption(parser): parser.addoption("--odoo-database",