-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by mikevhe18
- Loading branch information
Showing
12 changed files
with
137 additions
and
69 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,15 @@ | ||
# Do NOT update manually; changes here will be overwritten by Copier | ||
_commit: c26a26c | ||
_src_path: gh:open-synergy/ssi-addons-repo-template | ||
dependency_installation_mode: OCA | ||
generate_requirements_txt: true | ||
include_aeroo_report: false | ||
include_wkhtmltopdf: false | ||
odoo_version: 14.0 | ||
rebel_module_groups: [] | ||
repo_description: opnsynid-stock-reporting | ||
repo_name: opnsynid-stock-reporting | ||
repo_slug: opnsynid-stock-reporting | ||
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
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,18 @@ | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-20.04 | ||
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') }} |
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,71 @@ | ||
name: tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "14.0*" | ||
push: | ||
branches: | ||
- "14.0" | ||
- "14.0-ocabot-*" | ||
|
||
jobs: | ||
unreleased-deps: | ||
runs-on: ubuntu-latest | ||
name: Detect unreleased dependencies | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- 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-22.04 | ||
container: ${{ matrix.container }} | ||
name: ${{ matrix.name }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- container: ghcr.io/oca/oca-ci/py3.6-odoo14.0:latest | ||
makepot: "true" | ||
name: test with Odoo | ||
- container: ghcr.io/oca/oca-ci/py3.6-ocb14.0:latest | ||
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 | ||
env: | ||
PIP_INDEX_URL: https://pypi.org/simple | ||
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 == 'OCA' }} |
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 |
---|---|---|
|
@@ -4,6 +4,8 @@ exclude: | | |
# END NOT INSTALLABLE ADDONS | ||
# Files and folders generated by bots, to avoid loops | ||
^setup/|/static/description/index\.html$| | ||
# We don't want to mess with tool-generated files | ||
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/| | ||
# Maybe reactivate this when all README files include prettier ignore tags? | ||
^README\.md$| | ||
# Library files can have extraneous formatting (even minimized) | ||
|
@@ -26,7 +28,7 @@ repos: | |
language: fail | ||
files: "\\.rej$" | ||
- repo: https://github.com/oca/maintainer-tools | ||
rev: f2d1be9daceb2cccc102ae2be44891ce4a0ed3a0 | ||
rev: ab1d7f6 | ||
hooks: | ||
# update the NOT INSTALLABLE ADDONS section above | ||
- id: oca-update-pre-commit-excluded-addons | ||
|
@@ -36,21 +38,28 @@ repos: | |
rev: v1.4 | ||
hooks: | ||
- id: autoflake | ||
args: ["-i", "--ignore-init-module-imports"] | ||
args: | ||
- --expand-star-imports | ||
- --ignore-init-module-imports | ||
- --in-place | ||
- --remove-all-unused-imports | ||
- --remove-duplicate-keys | ||
- --remove-unused-variables | ||
- repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.1.2 | ||
hooks: | ||
- id: prettier | ||
name: prettier + plugin-xml | ||
name: prettier (with plugin-xml) | ||
additional_dependencies: | ||
- "[email protected]" | ||
- "@prettier/[email protected]" | ||
args: | ||
- --plugin=@prettier/plugin-xml | ||
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$ | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v7.8.1 | ||
hooks: | ||
|
@@ -85,6 +94,7 @@ repos: | |
rev: v2.7.2 | ||
hooks: | ||
- id: pyupgrade | ||
args: ["--keep-percent-format"] | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.5.1 | ||
hooks: | ||
|
@@ -102,8 +112,8 @@ repos: | |
- requirements.txt | ||
- --header | ||
- "# generated from manifests external_dependencies" | ||
- repo: https://gitlab.com/PyCQA/flake8 | ||
rev: 3.8.3 | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 3.9.2 | ||
hooks: | ||
- id: flake8 | ||
name: flake8 except __init__.py | ||
|
@@ -124,7 +134,7 @@ repos: | |
- --exit-zero | ||
verbose: true | ||
additional_dependencies: &pylint_deps | ||
- ssi-pylint-odoo==3.5.0.dev2 | ||
- pylint-odoo==3.5.0 | ||
- id: pylint | ||
name: pylint with mandatory checks | ||
args: | ||
|
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
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
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