Skip to content

Commit

Permalink
Support Python 2.7 in repos
Browse files Browse the repository at this point in the history
  • Loading branch information
SirTakobi committed Jun 21, 2023
1 parent 297fc19 commit 49872ab
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/.github/workflows/pre-commit.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,22 @@ jobs:
runs-on: ubuntu-20.04
{%- else %}
runs-on: ubuntu-22.04
{%- endif %}
{%- if odoo_version < 11 %}
container:
image: python:2.7.18-buster
{%- endif %}
steps:
- uses: actions/checkout@v3
{%- if odoo_version >= 11 %}
- uses: actions/setup-python@v2
{%- if odoo_version < 11 %}
with:
python-version: "2.7"
{%- elif odoo_version < 13 %}
{%- if odoo_version < 13 %}
with:
python-version: "3.6"
{%- elif odoo_version < 14 %}
with:
python-version: "3.8"
{%- endif %}
{%- endif %}
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
Expand Down

0 comments on commit 49872ab

Please sign in to comment.