Skip to content
Merged
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: 11 additions & 34 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,12 @@ jobs:
fail-fast: false
matrix:
ansible-version:
# - stable-2.9
- stable-2.13
# - stable-2.14
- stable-2.16
# - stable-2.15
# - milestone
# - devel
python-version:
# - "3.8"
- "3.9"
# - "3.10"
# - "3.11"
- "3.11"
dependency-source:
- github

Expand Down Expand Up @@ -85,30 +80,6 @@ jobs:
with:
source_path: ${{ env.source_directory }}

- name: Checkout ${{ steps.identify.outputs.dependency }}
if: steps.identify.outputs.dependency != '' && matrix.dependency-source == 'github'
uses: ansible-network/github_actions/.github/actions/checkout_dependency@main
with:
repository: ansible-collections/${{ steps.identify.outputs.dependency }}
path: ${{ env.dependency_directory }}
fetch-depth: "0"

- name: Read collection metadata from ${{ steps.identify.outputs.dependency }}
if: steps.identify.outputs.dependency != '' && matrix.dependency-source == 'github'
id: identify-dependency
uses: ansible-network/github_actions/.github/actions/identify_collection@main
with:
source_path: ${{ env.dependency_directory }}

- name: Build and install ${{ steps.identify.outputs.dependency }}
if: steps.identify.outputs.dependency != '' && matrix.dependency-source == 'github'
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
with:
install_python_dependencies: true
source_path: ${{ env.dependency_directory }}
collection_path: ${{ steps.identify-dependency.outputs.collection_path }}
tar_file: ${{ steps.identify-dependency.outputs.tar_file }}

- name: Build and install the collection
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
with:
Expand All @@ -124,12 +95,18 @@ jobs:
- name: Install the integration test dependency
run: python3 -m pip install git+https://github.com/ansible-network/pytest-ansible-network-integration.git

- name: Print the python dependencies
run: python3 -m pip list
- name: Clear current lab id if any
run: "cml clear"
continue-on-error: true
env:
CML_VERIFY_CERT: False
VIRL_HOST: ${{ secrets.virl_host }}
VIRL_PASSWORD: ${{ secrets.virl_password }}
VIRL_USERNAME: admin

- name: Run integration tests
run: >-
python -m pytest tests/integration
python3 -m pytest tests/integration
--integration-tests-path ${{ inputs.integration_test_path }}
--cml-lab ${{ inputs.cml_lab }}
${{ inputs.pytest_addopts }}
Expand Down