From 83d7067946ad8d8f25f2e98e35cf22b8786befb3 Mon Sep 17 00:00:00 2001 From: "Moises Lopez - https://www.vauxoo.com/" Date: Wed, 17 Apr 2024 13:02:33 -0600 Subject: [PATCH] [REF] CI: Add rebels modules using copier --- .copier-answers.yml | 5 +++-- .github/workflows/test.yml | 12 ++++++++++++ .pre-commit-config.yaml | 4 ++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index f399794a7..e3275c67b 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.19 +_commit: v1.20 _src_path: gh:oca/oca-addons-repo-template additional_ruff_rules: [] ci: GitHub @@ -16,7 +16,8 @@ odoo_test_flavor: Both odoo_version: 17.0 org_name: Odoo Community Association (OCA) org_slug: OCA -rebel_module_groups: [] +rebel_module_groups: +- account_move_name_sequence repo_description: 'TODO: add repo description.' repo_name: account-financial-tools repo_slug: account-financial-tools diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 36c22a87b..f1efe6ba1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,8 +36,17 @@ jobs: matrix: include: - container: ghcr.io/oca/oca-ci/py3.10-odoo17.0:latest + include: "account_move_name_sequence" name: test with Odoo - container: ghcr.io/oca/oca-ci/py3.10-ocb17.0:latest + include: "account_move_name_sequence" + name: test with OCB + makepot: "true" + - container: ghcr.io/oca/oca-ci/py3.10-odoo17.0:latest + exclude: "account_move_name_sequence" + name: test with Odoo + - container: ghcr.io/oca/oca-ci/py3.10-ocb17.0:latest + exclude: "account_move_name_sequence" name: test with OCB makepot: "true" services: @@ -49,6 +58,9 @@ jobs: POSTGRES_DB: odoo ports: - 5432:5432 + env: + INCLUDE: "${{ matrix.include }}" + EXCLUDE: "${{ matrix.exclude }}" steps: - uses: actions/checkout@v3 with: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2403da513..4523057d7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,7 +41,7 @@ repos: hooks: - id: whool-init - repo: https://github.com/oca/maintainer-tools - rev: f71041f22b8cd68cf7c77b73a14ca8d8cd190a60 + rev: 9a170331575a265c092ee6b24b845ec508e8ef75 hooks: # update the NOT INSTALLABLE ADDONS section above - id: oca-update-pre-commit-excluded-addons @@ -110,7 +110,7 @@ repos: args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/OCA/pylint-odoo - rev: v8.0.19 + rev: v9.0.4 hooks: - id: pylint_odoo name: pylint with optional checks