diff --git a/.circleci/config.yml b/.circleci/config.yml index 2fb6f0db83..34ef4766ec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -144,12 +144,6 @@ run_markdownlint: &run_markdownlint -- \ docs -codespell: &codespell - name: Run codespell - command: | - pip install codespell==2.4.0 - codespell . - win_install_golang: &win_install_golang name: Install golang shell: powershell.exe @@ -642,13 +636,6 @@ jobs: - run: <<: *run_markdownlint - codespell: - <<: *defaults - steps: - - checkout - - run: - <<: *codespell - build: resource_class: xlarge <<: *defaults @@ -976,16 +963,6 @@ workflows: - AWS__PHXDEVOPS__circle-ci-test - GCP__automated-tests - GITHUB__PAT__gruntwork-ci - - codespell: - filters: - tags: - only: - - /^v.*/ - - /^alpha.*/ - context: - - AWS__PHXDEVOPS__circle-ci-test - - GCP__automated-tests - - GITHUB__PAT__gruntwork-ci - build: filters: tags: diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000000..a7eb10a395 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,36 @@ +name: Codespell + +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] + +jobs: + codespell: + name: Check Spelling + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Create default packages file + run: | + cat < .mise-python-default-packages + codespell==2.4.0 + EOF + + echo "MISE_PYTHON_DEFAULT_PACKAGES_FILE=.mise-python-default-packages" >> "$GITHUB_ENV" + + - name: Use mise to install dependencies + uses: jdx/mise-action@v2 + with: + version: 2025.4.4 + mise_toml: | + [tools] + python = "3.13.3" + + - name: Run codespell + run: codespell .