-
Notifications
You must be signed in to change notification settings - Fork 16
40 lines (35 loc) · 898 Bytes
/
test.yml
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
name: test
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
pull_request_target:
branches: [main]
types:
- labeled
- opened
- reopened
- synchronize
workflow_dispatch:
jobs:
safe-to-test:
if: >-
github.event.label.name == 'safe to test' ||
github.event.action != 'labeled'
uses: ansible-network/github_actions/.github/workflows/safe-to-test.yml@main
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tox-ansible:
uses: ansible/tox-ansible/.github/workflows/run.yml@main
needs:
- safe-to-test
tox-ansible-passed:
if: ${{ always() }}
needs:
- tox-ansible
runs-on: ubuntu-latest
steps:
- run: >-
python -c "assert set([
'${{ needs.tox-ansible.result }}',
]) == {'success'}"