@@ -41,17 +41,12 @@ jobs:
41
41
fail-fast : false
42
42
matrix :
43
43
ansible-version :
44
- # - stable-2.9
45
- - stable-2.13
46
- # - stable-2.14
44
+ - stable-2.16
47
45
# - stable-2.15
48
46
# - milestone
49
47
# - devel
50
48
python-version :
51
- # - "3.8"
52
- - " 3.9"
53
- # - "3.10"
54
- # - "3.11"
49
+ - " 3.11"
55
50
dependency-source :
56
51
- github
57
52
85
80
with :
86
81
source_path : ${{ env.source_directory }}
87
82
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
-
112
83
- name : Build and install the collection
113
84
uses : ansible-network/github_actions/.github/actions/build_install_collection@main
114
85
with :
@@ -124,12 +95,18 @@ jobs:
124
95
- name : Install the integration test dependency
125
96
run : python3 -m pip install git+https://github.com/ansible-network/pytest-ansible-network-integration.git
126
97
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
129
106
130
107
- name : Run integration tests
131
108
run : >-
132
- python -m pytest tests/integration
109
+ python3 -m pytest tests/integration
133
110
--integration-tests-path ${{ inputs.integration_test_path }}
134
111
--cml-lab ${{ inputs.cml_lab }}
135
112
${{ inputs.pytest_addopts }}
0 commit comments