Skip to content

Commit a389b7e

Browse files
committed
ci(molecule): run all cisshgo scenarios with both libssh and paramiko
Add network_cli_ssh_type matrix axis so every discovered scenario executes twice — once with libssh and once with paramiko. The SSH type is passed as an extra var to override inventory defaults.
1 parent 6ab1f72 commit a389b7e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/molecule.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,15 @@ jobs:
6767
# 2. Run each scenario in its own job (parallel + isolated)
6868
# ------------------------------------------------------------------
6969
molecule:
70-
name: "molecule: ${{ matrix.scenario }}"
70+
name: "molecule (${{ matrix.network_cli_ssh_type }}): ${{ matrix.scenario }}"
7171
needs: discover
7272
runs-on: ubuntu-latest
7373
timeout-minutes: 20
7474
strategy:
7575
fail-fast: false
7676
matrix:
7777
scenario: ${{ fromJson(needs.discover.outputs.scenarios) }}
78+
network_cli_ssh_type: ["libssh", "paramiko"]
7879
python-version: ["3.12"]
7980
ansible-version: ["stable-2.20"]
8081
env:
@@ -128,13 +129,13 @@ jobs:
128129
129130
- name: Run molecule scenario
130131
working-directory: cisco/ios/extensions
131-
run: molecule test -s "${{ matrix.scenario }}"
132+
run: molecule test -s "${{ matrix.scenario }}" -- -e ansible_network_cli_ssh_type=${{ matrix.network_cli_ssh_type }}
132133

133134
- name: Upload cisshgo + molecule logs on failure
134135
if: failure()
135136
uses: actions/upload-artifact@v4
136137
with:
137-
name: molecule-${{ matrix.scenario }}-logs
138+
name: molecule-${{ matrix.scenario }}-${{ matrix.network_cli_ssh_type }}-logs
138139
path: |
139140
/tmp/cisshgo-*.log
140141
cisco/ios/extensions/molecule/${{ matrix.scenario }}/molecule.log

0 commit comments

Comments
 (0)