Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: '3.10.13'
- run: pip install flake8
- name: Lint with flake8
if: github.event_name == 'push'
Expand All @@ -25,29 +25,33 @@ jobs:
--per-file-ignores='**/init.py:F401' \
--exclude=__unported__,__init__.py,examples \
--show-source --statistics --count --max-line-length=120 .
- uses: grantmcconnaughey/[email protected]

- name: Review PR with flake8 (via reviewdog)
uses: reviewdog/action-flake8@v3
if: github.event_name == 'pull_request'
with:
# The GitHub API token to create reviews with
token: ${{ secrets.GITHUB_TOKEN }}
# Fail if "new" violations detected or "any", default "new"
failIf: new
fail_on_error: true
reporter: github-pr-review
level: warning
# Additional arguments to pass to flake8, default "." (current directory)
args: |
--select=C,E,F,W,B,B950 \
--ignore=E123,E133,E226,E241,E242,F811,F601,W503,W504,E203,E501 \
--per-file-ignores='**/init.py:F401' \
--exclude=__unported__,__init__.py,examples \
flake8_args: >
--select=C,E,F,W,B,B950
--ignore=E123,E133,E226,E241,E242,F811,F601,W503,W504,E203,E501
--per-file-ignores=**/init.py:F401
--exclude=__unported__,__init__.py,examples
--show-source --statistics --max-line-length=120 .

pylint:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: curl https://raw.githubusercontent.com/iterativo-git/dockerdoo/12.0/.devcontainer/.vscode/oca_pylint.cfg -o oca_pylint.cfg
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: '3.10.13'
- run: pip install pylint_odoo
- run: |
pylint **/*.py --exit-zero --rcfile oca_pylint.cfg --load-plugins pylint_odoo
4 changes: 2 additions & 2 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
env:
REQUIRED_MODULES: session_redis,logging_json,attachment_s3,cloud_platform_exoscale # list of addional addons to install separated by comma
GAR_BASE: ${{ vars.GCP_REGISTRY}}
HUB_BASE: gobdo/odoo-gob
IMAGE_LOCATION: iterativodo/dockerdoo
HUB_BASE: ${{ vars.HUB_BASE}}
IMAGE_LOCATION: ${{ vars.IMAGE_LOCATION}}
ENV: "prod"

jobs:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ on:

env:
REQUIRED_MODULES: cloud_platform_exoscale # list of addional addons to install separated by comma
GAR_BASE: us-docker.pkg.dev/${{ secrets.GKE_PROJECT }}/odoo-gob
HUB_BASE: gobdo/odoo-gob
IMAGE_LOCATION: iterativodo/dockerdoo
GAR_BASE: ${{ vars.GCP_REGISTRY}}
HUB_BASE: ${{ vars.HUB_BASE}}
IMAGE_LOCATION: ${{ vars.IMAGE_LOCATION}}
ENV: "test"

jobs:
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
driver-opts: network=host

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
/tmp/.buildx-cache
Expand Down
Loading