-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (48 loc) · 1.36 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: ci
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch: null
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- uses: pre-commit/action@v3.0.1
self-test-network-integration:
uses: ./.github/workflows/network_integration.yaml
with:
lab_title: cisco_nxos
network_os: cisco.nxos.nxos
pytest_addopts: "--color=yes -n 2"
collection_pre_install: >-
git+https://github.com/ansible-collections/ansible.utils.git
git+https://github.com/ansible-collections/ansible.netcommon.git
dry_run: true
dry_run_repo: ansible-collections/cisco.nxos
secrets:
cml_ssh_password: "selftest-user" # These are placeholder values
virl_password: "selftest-pass"
virl_host: "examplehost"
check:
if: always()
permissions:
id-token: write
checks: read
runs-on: ubuntu-latest
needs:
- lint
- self-test-network-integration
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}