-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27c2e48
commit 76208ca
Showing
33 changed files
with
1,100 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Do NOT update manually; changes here will be overwritten by Copier | ||
_commit: v1.20 | ||
_src_path: https://github.com/OCA/oca-addons-repo-template.git | ||
ci: GitHub | ||
convert_readme_fragments_to_markdown: true | ||
generate_requirements_txt: true | ||
github_check_license: true | ||
github_ci_extra_env: {} | ||
github_enable_codecov: false | ||
github_enable_makepot: false | ||
github_enable_stale_action: false | ||
github_enforce_dev_status_compatibility: false | ||
include_wkhtmltopdf: false | ||
odoo_test_flavor: OCB | ||
odoo_version: 12.0 | ||
org_name: Quartile Limited | ||
org_slug: qrtl | ||
rebel_module_groups: [] | ||
repo_description: '' | ||
repo_name: '' | ||
repo_slug: sbt-custom | ||
repo_website: https://www.quartile.co | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
[flake8] | ||
max-line-length = 80 | ||
max-complexity = 16 | ||
# B = bugbear | ||
# B9 = bugbear opinionated (incl line length) | ||
select = C,E,F,W,B,B9 | ||
# E203: whitespace before ':' (black behaviour) | ||
# E501: flake8 line length (covered by bugbear B950) | ||
# W503: line break before binary operator (black behaviour) | ||
ignore = E203,E501,W503 | ||
# E123,E133,E226,E241,E242 are ignored by default by pep8 and flake8 | ||
# F811 is legal in odoo 8 when we implement 2 interfaces for a method | ||
# F601 pylint support this case with expected tests | ||
# W503 changed by W504 and OCA prefers allow both | ||
# E203: whitespace before ':' (black behaviour and not pep8 compliant) | ||
ignore = E123,E133,E226,E241,E242,F811,F601,W503,W504,E203 | ||
max-line-length = 88 | ||
per-file-ignores= | ||
__init__.py:F401 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "12.0*" | ||
push: | ||
branches: | ||
- "12.0" | ||
- "12.0-ocabot-*" | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.6" | ||
- name: Get python version | ||
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} | ||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
- name: Run pre-commit | ||
run: pre-commit run --all-files --show-diff-on-failure --color=always | ||
env: | ||
# Consider valid a PR that changes README fragments but doesn't | ||
# change the README.rst file itself. It's not really a problem | ||
# because the bot will update it anyway after merge. This way, we | ||
# lower the barrier for functional contributors that want to fix the | ||
# readme fragments, while still letting developers get README | ||
# auto-generated (which also helps functionals when using runboat). | ||
# DOCS https://pre-commit.com/#temporarily-disabling-hooks | ||
SKIP: oca-gen-addon-readme | ||
- name: Check that all files generated by pre-commit are in git | ||
run: | | ||
newfiles="$(git ls-files --others --exclude-from=.gitignore)" | ||
if [ "$newfiles" != "" ] ; then | ||
echo "Please check-in the following files:" | ||
echo "$newfiles" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "12.0*" | ||
push: | ||
branches: | ||
- "12.0" | ||
- "12.0-ocabot-*" | ||
|
||
jobs: | ||
# unreleased-deps: | ||
# runs-on: ubuntu-latest | ||
# name: Detect unreleased dependencies | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - run: | | ||
# for reqfile in requirements.txt test-requirements.txt ; do | ||
# if [ -f ${reqfile} ] ; then | ||
# result=0 | ||
# # reject non-comment lines that contain a / (i.e. URLs, relative paths) | ||
# grep "^[^#].*/" ${reqfile} || result=$? | ||
# if [ $result -eq 0 ] ; then | ||
# echo "Unreleased dependencies found in ${reqfile}." | ||
# exit 1 | ||
# fi | ||
# fi | ||
# done | ||
test: | ||
runs-on: ubuntu-20.04 | ||
container: ${{ matrix.container }} | ||
name: ${{ matrix.name }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- container: ghcr.io/oca/oca-ci/py3.6-ocb12.0:latest | ||
name: test with OCB | ||
makepot: "false" | ||
services: | ||
postgres: | ||
image: postgres:9.6 | ||
env: | ||
POSTGRES_USER: odoo | ||
POSTGRES_PASSWORD: odoo | ||
POSTGRES_DB: odoo | ||
ports: | ||
- 5432:5432 | ||
env: | ||
ADDONS_PATH: "/opt/odoo/addons,sbtechnology" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
- name: Clone Private Repo | ||
uses: actions/checkout@master | ||
with: | ||
repository: qrtl/sbtechnology | ||
token: ${{ secrets.CI_PRIVATE_REPO_ACCESS_TOKEN }} | ||
path: sbtechnology | ||
ref: refs/heads/12.0-add-liecnese | ||
- name: Install addons and dependencies | ||
run: oca_install_addons | ||
- name: Check licenses | ||
run: manifestoo -d . check-licenses | ||
- name: Check development status | ||
run: manifestoo -d . check-dev-status --default-dev-status=Beta | ||
continue-on-error: true | ||
- name: Initialize test db | ||
run: oca_init_test_database | ||
- name: Run tests | ||
run: oca_run_tests | ||
- name: Update .pot files | ||
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }} | ||
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'qrtl' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[MESSAGES_CONTROL] | ||
disable=xml-deprecated-data-node,xml-deprecated-tree-attribute |
Oops, something went wrong.