瀏覽代碼

Add github action to codespell main on push and PRs

Yaroslav Halchenko 4 月之前
父節點
當前提交
2e5fbba961
共有 1 個文件被更改,包括 25 次插入0 次删除
  1. 25 0
      .github/workflows/codespell.yml

+ 25 - 0
.github/workflows/codespell.yml

@@ -0,0 +1,25 @@
+# Codespell configuration is within pyproject.toml
+---
+name: Codespell
+
+on:
+  push:
+    branches: [main]
+  pull_request:
+    branches: [main]
+
+permissions:
+  contents: read
+
+jobs:
+  codespell:
+    name: Check for spelling errors
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v4
+      - name: Annotate locations with typos
+        uses: codespell-project/codespell-problem-matcher@v1
+      - name: Codespell
+        uses: codespell-project/actions-codespell@v2