Add pyupgrade #947
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |