Skip to content

Commit 510592e

Browse files
authored
Merge pull request #181 from hbrunn/master-pre-commit-ubuntu-20.04
[FIX] use ubuntu 20.04 for odoo<14 ci
2 parents 42499ac + 7f72073 commit 510592e

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/.github/workflows/pre-commit.yml.jinja

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ on:
1111

1212
jobs:
1313
pre-commit:
14-
runs-on: ubuntu-latest
14+
{%- if odoo_version < 14 %}
15+
runs-on: ubuntu-20.04
16+
{%- else %}
17+
runs-on: ubuntu-22.04
18+
{%- endif %}
1519
steps:
1620
- uses: actions/checkout@v2
1721
- uses: actions/setup-python@v2

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ jobs:
5050
fi
5151
done
5252
test:
53-
runs-on: ubuntu-latest
53+
{%- if odoo_version < 14 %}
54+
runs-on: ubuntu-20.04
55+
{%- else %}
56+
runs-on: ubuntu-22.04
57+
{%- endif %}
5458
container: {% raw %}${{ matrix.container }}{% endraw %}
5559
name: {% raw %}${{ matrix.name }}{% endraw %}
5660
strategy:

0 commit comments

Comments
 (0)