From 332c32eb5ea9d29f0c051c251d6fdfe24060eb55 Mon Sep 17 00:00:00 2001 From: "Moises Lopez - https://www.vauxoo.com/" Date: Sun, 7 Apr 2024 20:09:48 -0600 Subject: [PATCH] [REF] CI: Add rebels modules using "copier update" --- .copier-answers.yml | 9 +++++++-- .github/workflows/test.yml | 12 ++++++++++++ .gitignore | 1 + .pre-commit-config.yaml | 5 ++++- 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index 6a911df48..d23164146 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,7 +1,8 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.17.2 +_commit: v1.20 _src_path: gh:oca/oca-addons-repo-template ci: GitHub +convert_readme_fragments_to_markdown: false generate_requirements_txt: true github_check_license: true github_ci_extra_env: {} @@ -14,9 +15,13 @@ odoo_test_flavor: Both odoo_version: 15.0 org_name: Odoo Community Association (OCA) org_slug: OCA -rebel_module_groups: [] +rebel_module_groups: +- account_move_name_sequence +- account_sequence_option repo_description: 'TODO: add repo description.' repo_name: account-financial-tools repo_slug: account-financial-tools repo_website: https://github.com/OCA/account-financial-tools +use_pyproject_toml: false +use_ruff: false diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5c07e37d0..c3e60dded 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.8-odoo15.0:latest + include: "account_move_name_sequence" + name: test with Odoo account_move_name_sequence + - container: ghcr.io/oca/oca-ci/py3.8-ocb15.0:latest + include: "account_move_name_sequence" + name: test with OCB account_move_name_sequence + makepot: "true" + - container: ghcr.io/oca/oca-ci/py3.8-odoo15.0:latest + exclude: "account_move_name_sequence" name: test with Odoo - container: ghcr.io/oca/oca-ci/py3.8-ocb15.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/.gitignore b/.gitignore index 9c283fd41..0090721f5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ __pycache__/ *.py[cod] /.venv /.pytest_cache +/.ruff_cache # C extensions *.so diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fc7394afd..cb29b5ad2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,6 +14,8 @@ exclude: | ^docs/_templates/.*\.html$| # Don't bother non-technical authors with formatting issues in docs readme/.*\.(rst|md)$| + # Ignore build and dist directories in addons + /build/|/dist/| # You don't usually want a bot to modify your legal texts (LICENSE.*|COPYING.*) default_language_version: @@ -35,7 +37,7 @@ repos: language: fail files: '[a-zA-Z0-9_]*/i18n/en\.po$' - repo: https://github.com/oca/maintainer-tools - rev: 969238e47c07d0c40573acff81d170f63245d738 + rev: 9a170331575a265c092ee6b24b845ec508e8ef75 hooks: # update the NOT INSTALLABLE ADDONS section above - id: oca-update-pre-commit-excluded-addons @@ -48,6 +50,7 @@ repos: - --org-name=OCA - --repo-name=account-financial-tools - --if-source-changed + - --keep-source-digest - repo: https://github.com/OCA/odoo-pre-commit-hooks rev: v0.0.25 hooks: