-
-
Notifications
You must be signed in to change notification settings - Fork 50
40 lines (37 loc) · 983 Bytes
/
tox.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: tox
on:
push:
branches:
- "main"
- "releases/**"
- "stable/**"
pull_request:
branches:
- "main"
pull_request_target:
types: [opened, labeled, unlabeled] # for ack job
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
permissions: # needed for tox.yml workflow
checks: write
contents: write # needed to update release
id-token: write
packages: write
pull-requests: write
jobs:
ack:
# checks pull-request labels and updates the release notes on pushes
if: github.event_name == 'pull_request_target' || github.event_name == 'push'
uses: ansible/team-devtools/.github/workflows/push.yml@main
tox:
if: github.event_name != 'pull_request_target'
uses: ansible/team-devtools/.github/workflows/tox.yml@main
with:
jobs_producing_coverage: 6
other_names: |
docs
lint
pkg