Skip to content

Commit 450e38f

Browse files
authored
feat: Adding codespell workflow (#4173)
* feat: Add `codespell` workflow to GitHub Actions * feat: Removing `codespell` from CircleCI * feat: Adding `MISE_PYTHON_DEFAULT_PACKAGES_FILE` to set default packages for python * fix: Also run on push to `main`
1 parent 1631015 commit 450e38f

File tree

2 files changed

+36
-23
lines changed

2 files changed

+36
-23
lines changed

.circleci/config.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,6 @@ run_markdownlint: &run_markdownlint
144144
-- \
145145
docs
146146
147-
codespell: &codespell
148-
name: Run codespell
149-
command: |
150-
pip install codespell==2.4.0
151-
codespell .
152-
153147
win_install_golang: &win_install_golang
154148
name: Install golang
155149
shell: powershell.exe
@@ -623,13 +617,6 @@ jobs:
623617
- run:
624618
<<: *run_markdownlint
625619

626-
codespell:
627-
<<: *defaults
628-
steps:
629-
- checkout
630-
- run:
631-
<<: *codespell
632-
633620
build:
634621
resource_class: xlarge
635622
<<: *defaults
@@ -957,16 +944,6 @@ workflows:
957944
- AWS__PHXDEVOPS__circle-ci-test
958945
- GCP__automated-tests
959946
- GITHUB__PAT__gruntwork-ci
960-
- codespell:
961-
filters:
962-
tags:
963-
only:
964-
- /^v.*/
965-
- /^alpha.*/
966-
context:
967-
- AWS__PHXDEVOPS__circle-ci-test
968-
- GCP__automated-tests
969-
- GITHUB__PAT__gruntwork-ci
970947
- build:
971948
filters:
972949
tags:

.github/workflows/codespell.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Codespell
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
10+
jobs:
11+
codespell:
12+
name: Check Spelling
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Create default packages file
20+
run: |
21+
cat <<EOF > .mise-python-default-packages
22+
codespell==2.4.0
23+
EOF
24+
25+
echo "MISE_PYTHON_DEFAULT_PACKAGES_FILE=.mise-python-default-packages" >> "$GITHUB_ENV"
26+
27+
- name: Use mise to install dependencies
28+
uses: jdx/mise-action@v2
29+
with:
30+
version: 2025.4.4
31+
mise_toml: |
32+
[tools]
33+
python = "3.13.3"
34+
35+
- name: Run codespell
36+
run: codespell .

0 commit comments

Comments
 (0)