-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from coopiteasy/12.0-template
12.0 template
- Loading branch information
Showing
21 changed files
with
339 additions
and
210 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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
# Do NOT update manually; changes here will be overwritten by Copier | ||
_commit: v1.1.1 | ||
_src_path: gh:oca/oca-addons-repo-template | ||
dependency_installation_mode: PIP | ||
_commit: v2.0.10 | ||
_src_path: https://github.com/coopiteasy/oca-addons-repo-template.git | ||
ci: GitHub | ||
dependency_installation_mode: OCA | ||
generate_requirements_txt: true | ||
include_wkhtmltopdf: false | ||
odoo_version: 12.0 | ||
org_name: Coop IT Easy SCRLfs | ||
org_slug: coopiteasy | ||
rebel_module_groups: [] | ||
repo_description: "TODO: add repo description." | ||
repo_description: hr_timesheet modules | ||
repo_name: cie-timesheet | ||
repo_slug: cie-timesheet | ||
repo_website: https://coopiteasy.be | ||
travis_apt_packages: [] | ||
travis_apt_sources: [] |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
[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 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,13 @@ | ||
## Description | ||
|
||
|
||
|
||
## Odoo task (if applicable) | ||
|
||
|
||
|
||
## Checklist before approval | ||
|
||
- [ ] Tests are present (or not needed). | ||
- [ ] Credits/copyright have been changed correctly. | ||
- [ ] (If a new module) Moving this to OCA has been considered. |
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,35 @@ | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "12.0*" | ||
push: | ||
branches: | ||
- "12.0" | ||
- "12.0-ocabot-*" | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- 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 | ||
- 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,50 @@ | ||
name: tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "12.0*" | ||
push: | ||
branches: | ||
- "12.0" | ||
- "12.0-ocabot-*" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
container: ${{ matrix.container }} | ||
name: ${{ matrix.name }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- container: ghcr.io/oca/oca-ci/py3.6-ocb12.0:latest | ||
makepot: "true" | ||
name: test with OCB | ||
services: | ||
postgres: | ||
image: postgres:9.6 | ||
env: | ||
POSTGRES_USER: odoo | ||
POSTGRES_PASSWORD: odoo | ||
POSTGRES_DB: odoo | ||
ports: | ||
- 5432:5432 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
- 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 | ||
- name: Initialize test db | ||
run: oca_init_test_database | ||
- name: Run tests | ||
run: oca_run_tests | ||
- uses: codecov/codecov-action@v1 | ||
- 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 == 'coopiteasy' }} |
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
Oops, something went wrong.