From 77c0cb26536c20e932aeab6b0eb28f00211e8bf7 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Wed, 8 Nov 2023 08:47:06 +0000 Subject: [PATCH] ci: avoid matrix builds Just install all required pythons and let pytest-xdist handle parallelization by itself. --- .github/workflows/test.yml | 38 ++++++++------------------------------ 1 file changed, 8 insertions(+), 30 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 57dbf14..24b6665 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,51 +9,29 @@ 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 # 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 + 3.12 # 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: ${{ matrix.odoo-version }}