10000 Merge pull request #23529 from ericpre/add__workflow_dispatch_github_CI · matplotlib/matplotlib@5d0d141 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d0d141

Browse files
authored
Merge pull request #23529 from ericpre/add__workflow_dispatch_github_CI
Add workflow dispatch GitHub CI
2 parents 1cedc97 + 35bc7fa commit 5d0d141

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
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

doc/devel/testing.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ workflows
159159
GitHub Actions should be automatically enabled for your personal Matplotlib
160160
fork once the YAML workflow files are in it. It generally isn't necessary to
161161
look at these workflows, since any pull request submitted against the main
162-
Matplotlib repository will be tested.
162+
Matplotlib repository will be tested. The Tests workflow is skipped in forked
163+
repositories but you can trigger a run manually from the `GitHub web interface
164+
<https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow>`_.
163165

164166
You can see the GitHub Actions results at
165167
https://github.com/your_GitHub_user_name/matplotlib/actions -- here's `an

0 commit comments

Comments
 (0)
0