Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 18.0 (continuation) #629

Merged
merged 3 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ jobs:
fail-fast: false
matrix:
# Test modern Odoo versions with latest Postgres version
odoo_version: ["17.0"]
pg_version: ["15"]
odoo_version: ["18.0"]
pg_version: ["16"]
python_version: ["3.10"]
include:
josep-tecnativa marked this conversation as resolved.
Show resolved Hide resolved
# Older odoo versions don't support latest postgres and Python versions
- odoo_version: "17.0"
pg_version: "15"
python_version: "3.10"
- odoo_version: "16.0"
pg_version: "14"
python_version: "3.10"
Expand Down Expand Up @@ -103,6 +106,10 @@ jobs:
DOCKER_REPO: tecnativa/doodba
GHCR_HOST: ghcr.io
steps:
- name: Clean Docker system before build
run: |
docker system prune -af || true
docker builder prune -af || true
# Set build date as env variable to be used later
- name: Set build date
run: echo "BUILD_DATE=$(date '+%Y-%m-%dT%H:%M:%S.%N%:z')" >> $GITHUB_ENV
Expand Down Expand Up @@ -165,3 +172,7 @@ jobs:
VCS_REF=${{ github.sha }}
BUILD_DATE=${{ env.BUILD_DATE }}
ODOO_VERSION=${{ matrix.odoo_version }}
- name: Clean Docker system after build
run: |
docker system prune -af || true
docker builder prune -af || true
10 changes: 5 additions & 5 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def _check_addons(self, scaffolding_dir, odoo_skip):

def test_addons_filtered_lt_16(self):
"""Test addons filtering with ``ONLY`` keyword in ``addons.yaml`` for versions < 16"""
self._check_addons("dotd", {"16.0", "17.0"})
self._check_addons("dotd", {"16.0", "17.0", "18.0"})

def test_addons_filtered_ge_16(self):
"""Test addons filtering with ``ONLY`` keyword in ``addons.yaml`` for versions >= 16"""
Expand Down Expand Up @@ -335,7 +335,7 @@ def test_addons_env(self):
("test", "-e", "auto/addons/crm"),
("test", "-d", "auto/addons/crm/migrations"),
)
for sub_env in matrix(odoo_skip={"11.0", "12.0", "13.0", "17.0"}):
for sub_env in matrix(odoo_skip={"11.0", "12.0", "13.0", "18.0"}):
pedrobaeza marked this conversation as resolved.
Show resolved Hide resolved
self.compose_test(
join(SCAFFOLDINGS_DIR, "addons_env_ou"),
sub_env,
Expand Down Expand Up @@ -416,7 +416,7 @@ def _check_dotd(self, scaffolding_dir, odoo_skip):

def test_dotd_lt_16(self):
"""Test environment with common ``*.d`` directories for versions < 16."""
self._check_dotd("dotd", {"16.0", "17.0"})
self._check_dotd("dotd", {"16.0", "17.0", "18.0"})

def test_dotd_ge_16(self):
"""Test environment with common ``*.d`` directories for versions >= 16."""
Expand Down Expand Up @@ -468,7 +468,7 @@ def _check_dependencies(self, scaffolding_dir, odoo_skip):

def test_dependencies_lt_16(self):
"""Test dependencies installation for versions < 16"""
self._check_dependencies("dependencies", {"16.0", "17.0"})
self._check_dependencies("dependencies", {"16.0", "17.0", "18.0"})

def test_dependencies_ge_16(self):
"""Test dependencies installation for versions >= 16"""
Expand All @@ -481,7 +481,7 @@ def test_dependencies_ge_16(self):
def test_dependencies_base_search_fuzzy(self):
"""Test dependencies installation."""
dependencies_dir = join(SCAFFOLDINGS_DIR, "dependencies_base_search_fuzzy")
for sub_env in matrix(odoo_skip={"17.0"}):
for sub_env in matrix(odoo_skip={"17.0", "18.0"}):
self.compose_test(
dependencies_dir,
sub_env,
Expand Down
Loading