From f6a2cc333cfa7c6e53dd0101656771c8db7a465a Mon Sep 17 00:00:00 2001 From: abikouo Date: Thu, 20 Jul 2023 15:53:27 +0200 Subject: [PATCH] reduce number of chunks --- .github/workflows/integration.yml | 40 +++++++------------------------ 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 6491ef2b..c27b53da 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -30,7 +30,7 @@ jobs: uses: abikouo/github_actions/.github/actions/ansible_test_splitter@test_splitter_07202023 with: collections_to_test: ${{ env.source_dir }} - total_jobs: 4 + total_jobs: 2 - name: Display splitter output run: | @@ -102,36 +102,12 @@ jobs: git config --global user.email gha@localhost git config --global user.name "Github Actions" shell: bash - - # ansible test integration action added here - - name: Set up Python ${{ inputs.python_version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ env.python_version }} - - - name: Install wheel now for faster builds - run: python3 -m pip install wheel --upgrade - shell: bash - - - name: Install ansible-core (${{ inputs.ansible_version }}) - run: python3 -m pip install https://github.com/ansible/ansible/archive/${{ env.ansible_version }}.tar.gz --disable-pip-version-check - shell: bash - - - name: Disable selinux with selinux_please_lie_to_me - run: | - python3 -m pip uninstall -y selinux - python3 -m pip install selinux_please_lie_to_me - shell: bash - - - name: Install collection python requirements - run: python3 -m pip install -r test-requirements.txt - shell: bash - working-directory: ${{ steps.install.outputs.collection_path }} - name: Run integration tests - run: | - ansible-test integration $ANSIBLE_TEST_ARGS --python ${{ env.python_version }} -v ${{ steps.read-targets.outputs.ansible_test_targets }} - shell: bash - working-directory: ${{ steps.install.outputs.collection_path }} - env: - ANSIBLE_TEST_ARGS: "--diff --no-temp-workdir --color --skip-tags False --retry-on-error --continue-on-error" + uses: ansible-network/github_actions/.github/actions/ansible_test_integration@main + with: + collection_path: ${{ steps.install.outputs.collection_path }} + python_version: ${{ env.python_version }} + ansible_version: ${{ env.ansible_version }} + ansible_test_requirement_files: 'test-requirements.txt' + ansible_test_targets: ${{ steps.read-targets.outputs.ansible_test_targets }}