Skip to content

Commit

Permalink
Merge pull request OCA#136 from acsone/fix-13-pylint-pycompat
Browse files Browse the repository at this point in the history
Cap python version used for pre-commit
  • Loading branch information
sbidoul committed Apr 10, 2022
2 parents 382f30f + e130321 commit 4ade7f0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/.github/workflows/pre-commit.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
{%- if odoo_version < 11 %}
with:
python-version: "2.7"
{%- elif odoo_version < 13 %}
with:
python-version: "3.6"
{%- elif odoo_version < 14 %}
with:
python-version: "3.8"
{%- endif %}
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v1
Expand Down

0 comments on commit 4ade7f0

Please sign in to comment.