Skip to content

Commit

Permalink
CI: run checks on a schedule and allow workflow_dispatch
Browse files Browse the repository at this point in the history
Running checks on a schedule makes sense for our `ruff` lints and
our `codespell` spell checks, because these tools learn new lints/typo
fixes every then and now.
Without periodic job runs these new lints/typo fixes will only surface
when jobs for the next pull request fail for unrelated reasons.

The execution time of the scheduled job is chosen somewhat arbitrarily.

While at it also enable workflow_dispatch as a trigger, which can be used
to run the jobs manually.

Signed-off-by: Leonard Göhrs <[email protected]>
  • Loading branch information
hnez committed Jan 30, 2025
1 parent a90da1e commit d0e4709
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/check-and-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Check and Publish

on: [push, pull_request]
on:
pull_request:
push:
schedule:
- cron: '22 15 * * 3'
workflow_dispatch:

jobs:
codespell:
Expand Down

0 comments on commit d0e4709

Please sign in to comment.