Skip to content

Commit e18517f

Browse files
committed
Add workflow dispatch to test github workflow
1 parent 931a81f commit e18517f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
schedule:
1515
# 3:47 UTC on Saturdays
1616
- cron: "47 3 * * 6"
17+
workflow_dispatch:
18+
workflow: "*"
1719

1820
env:
1921
NO_AT_BRIDGE: 1 # Necessary for GTK3 interactive test.
@@ -22,7 +24,7 @@ env:
2224

2325
jobs:
2426
test:
25-
if: "github.repository == 'matplotlib/matplotlib' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')"
27+
if: "github.event_name == 'workflow_dispatch' || github.repository == 'matplotlib/matplotlib' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')"
2628
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }} ${{ matrix.name-suffix }}"
2729
runs-on: ${{ matrix.os }}
2830

0 commit comments

Comments
 (0)