Skip to content

Commit

Permalink
reduce number of chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
abikouo committed Jul 20, 2023
1 parent a6c0c43 commit f6a2cc3
Showing 1 changed file with 8 additions and 32 deletions.
40 changes: 8 additions & 32 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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 }}

0 comments on commit f6a2cc3

Please sign in to comment.