Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(oca-gen-addon-readme): reduce unneeded merge conflicts #222

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 18 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,37 @@ on:

jobs:
test:
runs-on: ${{matrix.machine}}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- odoo-version: 11.0
python-version: 3.6
machine: ubuntu-20.04
- odoo-version: 12.0
python-version: 3.6
machine: ubuntu-20.04
- odoo-version: 13.0
python-version: 3.8
machine: ubuntu-22.04
- odoo-version: 14.0
python-version: 3.8
machine: ubuntu-22.04
- odoo-version: 15.0
python-version: 3.8
machine: ubuntu-22.04
- odoo-version: 16.0
python-version: "3.10"
machine: ubuntu-22.04
- odoo-version: 17.0
python-version: "3.10"
machine: ubuntu-22.04
steps:
# Prepare environment
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry

# Some tests exercise pre-commit; all use poetry; cache that
- name: Restore poetry and pre-commit cache
uses: actions/cache@v3
with:
path: |
~/.cache/pre-commit
~/.cache/pypoetry/virtualenvs
key:
test-${{ runner.os }}-${{ hashFiles('poetry.lock',
'**/.pre-commit-config.yaml.jinja') }}

# Install specific alternate python versions required by hooks
- name: Install python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
python-version: |
3.6
3.7
3.8
3.10
3.11

# Let tests issue git commits
- run: git config --global user.name CI
Expand All @@ -55,5 +48,3 @@ jobs:
# Run all tests
- run: poetry install
- run: poetry run pytest --color yes
env:
SELECTED_ODOO_VERSIONS: ${{ matrix.odoo-version }}
Loading