File tree 7 files changed +57
-59
lines changed
7 files changed +57
-59
lines changed Original file line number Diff line number Diff line change 1
1
# Do NOT update manually; changes here will be overwritten by Copier
2
- _commit : v1.3.6
2
+ _commit : v1.5.2
3
3
_src_path : gh:oca/oca-addons-repo-template
4
4
ci : GitHub
5
5
dependency_installation_mode : PIP
6
6
generate_requirements_txt : true
7
7
include_wkhtmltopdf : false
8
8
odoo_version : 15.0
9
+ org_name : Odoo Community Association (OCA)
10
+ org_slug : OCA
9
11
rebel_module_groups : []
10
12
repo_description : ' TODO: add repo description.'
11
13
repo_name : delivery-carrier
12
14
repo_slug : delivery-carrier
15
+ repo_website : https://github.com/OCA/delivery-carrier
13
16
travis_apt_packages : []
14
17
travis_apt_sources : []
Original file line number Diff line number Diff line change 4
4
5
5
# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
6
6
parserOptions :
7
- ecmaVersion : 2017
7
+ ecmaVersion : 2019
8
8
9
9
overrides :
10
10
- files :
Original file line number Diff line number Diff line change @@ -2,19 +2,34 @@ name: pre-commit
2
2
3
3
on :
4
4
pull_request :
5
+ branches :
6
+ - " 15.0*"
5
7
push :
8
+ branches :
9
+ - " 15.0"
10
+ - " 15.0-ocabot-*"
6
11
7
12
jobs :
8
13
pre-commit :
9
14
runs-on : ubuntu-latest
10
15
steps :
11
16
- uses : actions/checkout@v2
12
17
- uses : actions/setup-python@v2
18
+ - name : Get python version
19
+ run : echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
20
+ - uses : actions/cache@v1
13
21
with :
14
- # The pylint-odoo version we use here does not support python 3.10
15
- # https://github.com/OCA/oca-addons-repo-template/issues/80
16
- # We also need to pin to an older version of python for older odoo versions
17
- # where we are not using black > 21. Older black versions won't work with
18
- # Python 3.9.8+, and we can't bump black without reformatting.
19
- python-version : " 3.10"
20
- - uses : pre-commit/action@v2.0.0
22
+ path : ~/.cache/pre-commit
23
+ key : pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
24
+ - name : Install pre-commit
25
+ run : pip install pre-commit
26
+ - name : Run pre-commit
27
+ run : pre-commit run --all-files --show-diff-on-failure --color=always
28
+ - name : Check that all files generated by pre-commit are in git
29
+ run : |
30
+ newfiles="$(git ls-files --others --exclude-from=.gitignore)"
31
+ if [ "$newfiles" != "" ] ; then
32
+ echo "Please check-in the following files:"
33
+ echo "$newfiles"
34
+ exit 1
35
+ fi
Original file line number Diff line number Diff line change 1
- name : test Odoo addons
1
+ name : tests
2
2
3
3
on :
4
4
pull_request :
5
5
branches :
6
6
- " 15.0*"
7
7
push :
8
8
branches :
9
- - " 15.0*"
9
+ - " 15.0"
10
+ - " 15.0-ocabot-*"
10
11
11
12
jobs :
13
+ unreleased-deps :
14
+ runs-on : ubuntu-latest
15
+ name : Detect unreleased dependencies
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - run : |
19
+ for reqfile in requirements.txt test-requirements.txt ; do
20
+ if [ -f ${reqfile} ] ; then
21
+ result=0
22
+ # reject non-comment lines that contain a / (i.e. URLs, relative paths)
23
+ grep "^[^#].*/" ${reqfile} || result=$?
24
+ if [ $result -eq 0 ] ; then
25
+ echo "Unreleased dependencies found in ${reqfile}."
26
+ exit 1
27
+ fi
28
+ fi
29
+ done
12
30
test :
13
31
runs-on : ubuntu-latest
14
32
container : ${{ matrix.container }}
33
+ name : ${{ matrix.name }}
15
34
strategy :
16
35
fail-fast : false
17
36
matrix :
18
37
include :
19
38
- container : ghcr.io/oca/oca-ci/py3.8-odoo15.0:latest
20
39
makepot : " true"
40
+ name : test with Odoo
21
41
- container : ghcr.io/oca/oca-ci/py3.8-ocb15.0:latest
42
+ name : test with OCB
22
43
services :
23
44
postgres :
24
45
image : postgres:9.6
Original file line number Diff line number Diff line change 46
46
- --remove-duplicate-keys
47
47
- --remove-unused-variables
48
48
- repo : https://github.com/psf/black
49
- rev : 21.9b0
49
+ rev : 22.3.0
50
50
hooks :
51
51
- id : black
52
52
- repo : https://github.com/pre-commit/mirrors-prettier
@@ -129,7 +129,7 @@ repos:
129
129
- --exit-zero
130
130
verbose : true
131
131
additional_dependencies : &pylint_deps
132
- - pylint-odoo==5.0.4
132
+ - pylint-odoo==5.0.5
133
133
- id : pylint
134
134
name : pylint with mandatory checks
135
135
args :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- [ ![ Runbot Status] ( https://runbot.odoo-community.org/runbot/badge/flat/99/15.0.svg )] ( https://runbot.odoo-community.org/runbot/repo/github-com-oca-delivery-carrier-99 )
2
- [ ![ Build Status] ( https://travis-ci.com/OCA/delivery-carrier.svg?branch=15.0 )] ( https://travis-ci.com/OCA/delivery-carrier )
1
+
2
+ [ ![ Runboat] ( https://img.shields.io/badge/runboat-Try%20me-875A7B.png )] ( https://runboat.odoo-community.org/builds?repo=OCA/delivery-carrier&target_branch=15.0 )
3
+ [ ![ Pre-commit Status] ( https://github.com/OCA/delivery-carrier/actions/workflows/pre-commit.yml/badge.svg?branch=15.0 )] ( https://github.com/OCA/delivery-carrier/actions/workflows/pre-commit.yml?query=branch%3A15.0 )
4
+ [ ![ Build Status] ( https://github.com/OCA/delivery-carrier/actions/workflows/test.yml/badge.svg?branch=15.0 )] ( https://github.com/OCA/delivery-carrier/actions/workflows/test.yml?query=branch%3A15.0 )
3
5
[ ![ codecov] ( https://codecov.io/gh/OCA/delivery-carrier/branch/15.0/graph/badge.svg )] ( https://codecov.io/gh/OCA/delivery-carrier )
4
6
[ ![ Translation Status] ( https://translation.odoo-community.org/widgets/delivery-carrier-15-0/-/svg-badge.svg )] ( https://translation.odoo-community.org/engage/delivery-carrier-15-0/?utm_source=widget )
5
7
@@ -25,12 +27,11 @@ This part will be replaced when running the oca-gen-addons-table script from OCA
25
27
26
28
This repository is licensed under [ AGPL-3.0] ( LICENSE ) .
27
29
28
- However, each module can have a totally different license, as long as they adhere to OCA
30
+ However, each module can have a totally different license, as long as they adhere to Odoo Community Association ( OCA)
29
31
policy. Consult each module's ` __manifest__.py ` file, which contains a ` license ` key
30
32
that explains its license.
31
33
32
34
----
33
-
34
35
OCA, or the [ Odoo Community Association] ( http://odoo-community.org/ ) , is a nonprofit
35
36
organization whose mission is to support the collaborative development of Odoo features
36
37
and promote its widespread use.
You can’t perform that action at this time.
0 commit comments