Skip to content

Commit 15abbd6

Browse files
committed
Merge branch 'master' into custom
Conflicts: src/.github/workflows/{% if ci == 'GitHub' %}test.yml{% endif %}.jinja src/.github/workflows/{% if github_enable_stale_action %}stale.yml{% endif %}
2 parents 90c9a17 + 9302b1c commit 15abbd6

14 files changed

Lines changed: 627 additions & 500 deletions

.github/workflows/test.yml

Lines changed: 23 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,59 +7,45 @@ on:
77
release:
88
types: [created]
99

10-
env:
11-
POETRY_VIRTUALENVS_IN_PROJECT: "true"
12-
1310
jobs:
1411
test:
1512
runs-on: ubuntu-latest
1613
strategy:
1714
matrix:
18-
python-version:
19-
- 3.6
20-
- 3.8
21-
odoo-version:
22-
- 11.0
23-
- 12.0
24-
- 13.0
25-
- 14.0
26-
- 15.0
2715
include:
28-
- python-version: 2.7
29-
odoo-version: 10.0
30-
exclude:
31-
- python-version: 3.8
32-
odoo-version: 11.0
33-
- python-version: 3.8
34-
odoo-version: 12.0
16+
- odoo-version: 10.0
17+
python-version: 2.7
18+
- odoo-version: 11.0
19+
python-version: 3.6
20+
- odoo-version: 12.0
21+
python-version: 3.6
22+
- odoo-version: 13.0
23+
python-version: 3.8
24+
- odoo-version: 14.0
25+
python-version: 3.8
26+
- odoo-version: 15.0
27+
python-version: 3.8
28+
- odoo-version: 16.0
29+
python-version: "3.10"
3530
steps:
3631
# Prepare environment
37-
- uses: actions/checkout@v2.3.3
32+
- uses: actions/checkout@v3
33+
- name: Install poetry
34+
run: pipx install poetry
35+
36+
# Install specific alternate python versions required by hooks
3837
- name: Install python
39-
uses: actions/setup-python@v2
38+
uses: actions/setup-python@v4
4039
with:
4140
python-version: ${{ matrix.python-version }}
42-
- name: Python Poetry Action
43-
uses: abatilo/actions-poetry@v2.1.0
44-
- name: generate cache key PY
45-
run:
46-
echo "PY=$((python -VV; pip freeze; poetry --version) | sha256sum | cut -d' '
47-
-f1)" >> $GITHUB_ENV
48-
- uses: actions/cache@v2.1.1
49-
with:
50-
path: .venv
51-
# HACK https://github.com/actions/cache/issues/2#issuecomment-673493515
52-
# If you need to "clear" cache, just update the `CACHE_DATE` secret,
53-
# putting current date (and time, if needed)
54-
key: >-
55-
cache ${{ secrets.CACHE_DATE }} ${{ env.PY }} ${{ runner.os }} ${{
56-
hashFiles('pyproject.toml') }} ${{ hashFiles('poetry.lock') }}
57-
- run: poetry install
41+
cache: poetry
42+
5843
# Let tests issue git commits
5944
- run: git config --global user.name CI
6045
- run: git config --global user.email CI@GITHUB
6146

6247
# Run all tests
48+
- run: poetry install
6349
- run: poetry run pytest --color yes
6450
env:
6551
SELECTED_ODOO_VERSIONS: ${{ matrix.odoo-version }}

.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
/.venv
5+
/.pytest_cache
6+
7+
# C extensions
8+
*.so
9+
10+
# Distribution / packaging
11+
.Python
12+
env/
13+
bin/
14+
build/
15+
develop-eggs/
16+
dist/
17+
eggs/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
*.egg-info/
23+
.installed.cfg
24+
*.egg
25+
*.eggs
26+
27+
# Installer logs
28+
pip-log.txt
29+
pip-delete-this-directory.txt
30+
31+
# Unit test / coverage reports
32+
htmlcov/
33+
.tox/
34+
.coverage
35+
.cache
36+
nosetests.xml
37+
coverage.xml
38+
39+
# Translations
40+
*.mo
41+
42+
# Pycharm
43+
.idea
44+
45+
# Eclipse
46+
.settings
47+
48+
# Visual Studio cache/options directory
49+
.vs/
50+
.vscode
51+
52+
# OSX Files
53+
.DS_Store
54+
55+
# Django stuff:
56+
*.log
57+
58+
# Mr Developer
59+
.mr.developer.cfg
60+
.project
61+
.pydevproject
62+
63+
# Rope
64+
.ropeproject
65+
66+
# Sphinx documentation
67+
docs/_build/
68+
69+
# Backup files
70+
*~
71+
*.swp
72+
73+
# OCA rules
74+
!static/lib/

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,13 @@ Go read [our contribution guideline](CONTRIBUTING.md).
6262

6363
This template allows to bootstrap and update addon repositories for these Odoo versions:
6464

65+
- 10.0
66+
- 11.0
67+
- 12.0
6568
- 13.0
6669
- 14.0
6770
- 15.0
71+
- 16.0
6872

6973
Future versions will be added as they are released. Past versions could be added as long
7074
as they don't break existing branches.

copier.yml

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ _migrations:
2020

2121
odoo_version:
2222
type: float
23-
default: 15.0
23+
default: 16.0
2424
choices:
2525
- 10.0
2626
- 11.0
2727
- 12.0
2828
- 13.0
2929
- 14.0
3030
- 15.0
31+
- 16.0
3132
help: Which Odoo version are we deploying in this branch?
3233

3334
org_slug:
@@ -69,7 +70,7 @@ repo_description:
6970

7071
ci:
7172
type: str
72-
default: Travis
73+
default: GitHub
7374
choices:
7475
- Travis
7576
- GitHub
@@ -84,6 +85,7 @@ travis_apt_sources:
8485
https://github.com/travis-ci/apt-source-safelist/blob/master/ubuntu.json.
8586
8687
Example: [heroku, mono]
88+
when: &ci_is_travis "{{ ci == 'Travis' }}"
8789

8890
travis_apt_packages:
8991
type: yaml
@@ -92,15 +94,16 @@ travis_apt_packages:
9294
Do you need extra apt packages in Travis? Add them here as a YAML list.
9395
9496
Example: [docker, vim]
97+
when: *ci_is_travis
9598

9699
dependency_installation_mode:
97-
default: OCA
100+
default: PIP
98101
type: str
99102
choices:
100103
- OCA
101104
- PIP
102-
help:
103-
Choose how to install module dependencies. Right now, "PIP" mode is experimental.
105+
help: Choose how to install module dependencies.
106+
when: *ci_is_travis
104107

105108
generate_requirements_txt:
106109
default: yes
@@ -127,3 +130,32 @@ include_wkhtmltopdf:
127130
help:
128131
Do you need to install wkhtmltopdf? Usually only needed if you're going to test PDF
129132
report generation.
133+
134+
github_enforce_dev_status_compatibility:
135+
type: bool
136+
default: yes
137+
help: GitHub action checks the minimum development status?
138+
when: &ci_is_github "{{ ci == 'GitHub' }}"
139+
140+
github_check_license:
141+
type: bool
142+
default: yes
143+
help: GitHub action checks the manifest license?
144+
when: *ci_is_github
145+
146+
github_enable_codecov:
147+
type: bool
148+
default: yes
149+
help: GitHub action runs codecov/codecov-action?
150+
when: *ci_is_github
151+
152+
github_enable_makepot:
153+
type: bool
154+
default: yes
155+
help: GitHub action updates .pot files?
156+
when: *ci_is_github
157+
158+
github_enable_stale_action:
159+
type: bool
160+
default: yes
161+
help: Create GitHub 'stale' action?

0 commit comments

Comments
 (0)