Skip to content

Commit

Permalink
lint and update action paths
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Sjögren <[email protected]>
  • Loading branch information
konstruktoid authored and apatard committed Oct 1, 2024
1 parent 78f0441 commit 4283728
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ack.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# See https://github.com/ansible-community/devtools/blob/main/.github/workflows/ack.yml
---
# See https://github.com/ansible/team-devtools/blob/main/.github/workflows/ack.yml
name: ack

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
pull_request_target:
types: [opened, labeled, unlabeled, synchronize]

jobs:
ack:
uses: ansible-community/devtools/.github/workflows/ack.yml@main
uses: ansible/team-devtools/.github/workflows/ack.yml@main
5 changes: 3 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# See https://github.com/ansible-community/devtools/blob/main/.github/workflows/push.yml
---
# See https://github.com/ansible/team-devtools/blob/main/.github/workflows/push.yml
name: push
on:
push:
Expand All @@ -9,4 +10,4 @@ on:

jobs:
ack:
uses: ansible-community/devtools/.github/workflows/push.yml@main
uses: ansible/team-devtools/.github/workflows/push.yml@main
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: release

on:
Expand Down Expand Up @@ -33,13 +34,13 @@ jobs:
- name: Check out src from Git
uses: actions/checkout@v4
with:
fetch-depth: 0 # needed by setuptools-scm
fetch-depth: 0 # needed by setuptools-scm

- name: Build dists
run: python -m tox -e pkg

- name: Publish to pypi.org
if: >- # "create" workflows run separately from "push" & "pull_request"
if: >- # "create" workflows run separately from "push" & "pull_request"
github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: tox

# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
Expand All @@ -6,8 +7,8 @@ concurrency:
cancel-in-progress: true

on:
push: # only publishes pushes to the main branch to TestPyPI
branches: # any integration branch but not tag
push: # only publishes pushes to the main branch to TestPyPI
branches: # any integration branch but not tag
- "main"
pull_request:

Expand All @@ -24,7 +25,7 @@ jobs:
with:
min_python: "3.9"
max_python: "3.12"
default_python: "3.9" # used by jobs in other_names
default_python: "3.9" # used by jobs in other_names
other_names: |
lint
pkg
Expand All @@ -40,9 +41,10 @@ jobs:
matrix: ${{ fromJson(needs.pre.outputs.matrix) }}

steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # needed by setuptools-scm
fetch-depth: 0 # needed by setuptools-scm

- name: Install Python
uses: actions/setup-python@v5
Expand All @@ -58,7 +60,7 @@ jobs:
run: |
${{ matrix.PREFIX }} tox run -e ${{ matrix.passed_name }}
check: # This job does nothing and is only used for the branch protection
check: # This job does nothing and is only used for the branch protection
if: always()

needs:
Expand Down

0 comments on commit 4283728

Please sign in to comment.