Skip to content

Commit

Permalink
ci: avoid matrix builds
Browse files Browse the repository at this point in the history
Just install all required pythons and let pytest-xdist handle parallelization by itself.
  • Loading branch information
yajo committed Nov 9, 2023
1 parent d91cdf8 commit cd3af75
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,9 @@ 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
Expand All @@ -45,8 +22,13 @@ jobs:
- 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 +37,3 @@ jobs:
# Run all tests
- run: poetry install
- run: poetry run pytest --color yes
env:
SELECTED_ODOO_VERSIONS: ${{ matrix.odoo-version }}

0 comments on commit cd3af75

Please sign in to comment.