Skip to content

Commit 5022b03

Browse files
ashwini-mhatreAshwini MhatreNilashishC
authored
Update integration workflow compatible with CML 2.5.1 (#145)
* Update integration workflow compatible with CML 2.5.1 --------- Signed-off-by: NilashishC <[email protected]> Co-authored-by: Ashwini Mhatre <[email protected]> Co-authored-by: NilashishC <[email protected]>
1 parent 6bd1f32 commit 5022b03

File tree

1 file changed

+11
-34
lines changed

1 file changed

+11
-34
lines changed

.github/workflows/integration.yml

Lines changed: 11 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,12 @@ jobs:
4141
fail-fast: false
4242
matrix:
4343
ansible-version:
44-
# - stable-2.9
45-
- stable-2.13
46-
# - stable-2.14
44+
- stable-2.16
4745
# - stable-2.15
4846
# - milestone
4947
# - devel
5048
python-version:
51-
# - "3.8"
52-
- "3.9"
53-
# - "3.10"
54-
# - "3.11"
49+
- "3.11"
5550
dependency-source:
5651
- github
5752

@@ -85,30 +80,6 @@ jobs:
8580
with:
8681
source_path: ${{ env.source_directory }}
8782

88-
- name: Checkout ${{ steps.identify.outputs.dependency }}
89-
if: steps.identify.outputs.dependency != '' && matrix.dependency-source == 'github'
90-
uses: ansible-network/github_actions/.github/actions/checkout_dependency@main
91-
with:
92-
repository: ansible-collections/${{ steps.identify.outputs.dependency }}
93-
path: ${{ env.dependency_directory }}
94-
fetch-depth: "0"
95-
96-
- name: Read collection metadata from ${{ steps.identify.outputs.dependency }}
97-
if: steps.identify.outputs.dependency != '' && matrix.dependency-source == 'github'
98-
id: identify-dependency
99-
uses: ansible-network/github_actions/.github/actions/identify_collection@main
100-
with:
101-
source_path: ${{ env.dependency_directory }}
102-
103-
- name: Build and install ${{ steps.identify.outputs.dependency }}
104-
if: steps.identify.outputs.dependency != '' && matrix.dependency-source == 'github'
105-
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
106-
with:
107-
install_python_dependencies: true
108-
source_path: ${{ env.dependency_directory }}
109-
collection_path: ${{ steps.identify-dependency.outputs.collection_path }}
110-
tar_file: ${{ steps.identify-dependency.outputs.tar_file }}
111-
11283
- name: Build and install the collection
11384
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
11485
with:
@@ -124,12 +95,18 @@ jobs:
12495
- name: Install the integration test dependency
12596
run: python3 -m pip install git+https://github.com/ansible-network/pytest-ansible-network-integration.git
12697

127-
- name: Print the python dependencies
128-
run: python3 -m pip list
98+
- name: Clear current lab id if any
99+
run: "cml clear"
100+
continue-on-error: true
101+
env:
102+
CML_VERIFY_CERT: False
103+
VIRL_HOST: ${{ secrets.virl_host }}
104+
VIRL_PASSWORD: ${{ secrets.virl_password }}
105+
VIRL_USERNAME: admin
129106

130107
- name: Run integration tests
131108
run: >-
132-
python -m pytest tests/integration
109+
python3 -m pytest tests/integration
133110
--integration-tests-path ${{ inputs.integration_test_path }}
134111
--cml-lab ${{ inputs.cml_lab }}
135112
${{ inputs.pytest_addopts }}

0 commit comments

Comments
 (0)