Skip to content

Commit 642b9e6

Browse files
committed
[FIX] Save electricity by running fewer tests
Signed-off-by: Carmen Bianca Bakker <carmen@coopiteasy.be>
1 parent fb3b1af commit 642b9e6

1 file changed

Lines changed: 3 additions & 19 deletions

File tree

src/.github/workflows/{% if ci == 'GitHub' %}test.yml{% endif %}.jinja

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ on:
1111

1212
{%
1313
set IMAGES = {
14-
"odoo": {
15-
15.0: "ghcr.io/oca/oca-ci/py3.8-odoo15.0:latest",
16-
14.0: "ghcr.io/oca/oca-ci/py3.6-odoo14.0:latest",
17-
13.0: "ghcr.io/oca/oca-ci/py3.6-odoo13.0:latest",
18-
12.0: "ghcr.io/oca/oca-ci/py3.6-odoo12.0:latest",
19-
11.0: "ghcr.io/oca/oca-ci/py3.5-odoo11.0:latest",
20-
10.0: "ghcr.io/oca/oca-ci/py2.7-odoo10.0:latest",
21-
},
2214
"ocb": {
2315
15.0: "ghcr.io/oca/oca-ci/py3.8-ocb15.0:latest",
2416
14.0: "ghcr.io/oca/oca-ci/py3.6-ocb14.0:latest",
@@ -40,28 +32,20 @@ jobs:
4032
{%- if rebel_module_groups %}
4133
include:
4234
{%- for group in rebel_module_groups %}
43-
- container: {{ IMAGES["odoo"][odoo_version] }}
44-
include: "{{ group }}"
45-
makepot: "true"
46-
name: test with Odoo
4735
- container: {{ IMAGES["ocb"][odoo_version] }}
4836
include: "{{ group }}"
37+
makepot: "true"
4938
name: test with OCB
5039
{%- endfor %}
51-
- container: {{ IMAGES["odoo"][odoo_version] }}
52-
exclude: "{{ rebel_module_groups|join(',') }}"
53-
makepot: "true"
54-
name: test with Odoo
5540
- container: {{ IMAGES["ocb"][odoo_version] }}
5641
exclude: "{{ rebel_module_groups|join(',') }}"
42+
makepot: "true"
5743
name: test with OCB
5844
{%- else %}
5945
{#- If all modules can get along, we test and generate .pot all at once #}
6046
include:
61-
- container: {{ IMAGES["odoo"][odoo_version] }}
62-
makepot: "true"
63-
name: test with Odoo
6447
- container: {{ IMAGES["ocb"][odoo_version] }}
48+
makepot: "true"
6549
name: test with OCB
6650
{%- endif %}
6751
services:

0 commit comments

Comments
 (0)