Skip to content

Commit

Permalink
Support Python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
SirTakobi committed Jun 21, 2023
1 parent 49872ab commit 3fa96df
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,30 @@ on:
types: [created]

jobs:
test_python27:
runs-on: ubuntu-20.04
container:
image: python:2.7.18-buster
steps:
# Prepare environment
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry

# Let tests issue git commits
- run: git config --global user.name CI
- run: git config --global user.email CI@GITHUB

# Run all tests
- run: poetry install
- run: poetry run pytest --color yes
env:
SELECTED_ODOO_VERSIONS: 10.0
test:
runs-on: ${{matrix.machine}}
strategy:
matrix:
include:
- odoo-version: 10.0
python-version: 2.7
machine: ubuntu-20.04
- odoo-version: 11.0
python-version: 3.6
machine: ubuntu-20.04
Expand All @@ -42,7 +58,6 @@ jobs:

# Make Python 3.6 also available when testing Python 2.7.
- name: Install python3.6
if: ${{ matrix.python-version == 2.7 }}
uses: actions/setup-python@v4
with:
python-version: 3.6
Expand Down

0 comments on commit 3fa96df

Please sign in to comment.