Skip to content

Commit

Permalink
FIX: Also re-run jobs if the workflow file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Nov 15, 2024
1 parent 06d045d commit 5adc225
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
release_body: ${{ steps.git-cliff.outputs.content }}

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ on:
paths:
- '**/*.py' # Watch for changes in any Python files
- 'pyproject.yml' # Watch for changes in the pyproject.yml file
- 'workflows/codecov.yml'
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
# python-version: ["3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
os: [ubuntu-latest]
python-version: ["3.12"]

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gitavscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
gitavscan:
runs-on: ubuntu-latest
name: AV scan

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: mypy

on:
push:
paths:
- '**/*.py' # Watch for changes in any Python files
- 'pyproject.yml' # Watch for changes in the pyproject.yml file
workflow_dispatch:
push:
paths:
- '**/*.py' # Watch for changes in any Python files
- 'pyproject.yml' # Watch for changes in the pyproject.yml file
- 'workflows/mypy.yml'
workflow_dispatch:

jobs:
mypy:
name: runner / mypy
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths:
- '**/*.py' # Watch for changes in any Python files
- 'pyproject.yml' # Watch for changes in the pyproject.yml file
- 'workflows/pylint.yml'
workflow_dispatch:

jobs:
Expand All @@ -13,8 +14,8 @@ jobs:
strategy:
matrix:
python-version: ["3.9", "3.13"]
steps:

steps:
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths:
- '**/*.py' # Watch for changes in any Python files
- 'pyproject.yml' # Watch for changes in the pyproject.yml file
- 'workflows/ruff.yml'
workflow_dispatch:

#concurrency:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths:
- '**/*.py' # Watch for changes in any Python files
- 'pyproject.yml' # Watch for changes in the pyproject.yml file
- 'workflows/unit-tests.yml'
workflow_dispatch:

jobs:
Expand All @@ -17,6 +18,7 @@ jobs:
# python-version: ["3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
os: [ubuntu-latest]
python-version: ["3.10"]

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths:
- '**/*.py' # Watch for changes in any Python files
- 'pyproject.yml' # Watch for changes in the pyproject.yml file
- 'workflows/unittests.yml'
workflow_dispatch:

jobs:
Expand All @@ -19,6 +20,7 @@ jobs:
# python-version: ["3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
os: [ubuntu-latest]
python-version: ["3.9", "3.13"]

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 5adc225

Please sign in to comment.