test: validate agent-sandbox warm pool feature path #200
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Codespell | |
| on: | |
| push: | |
| # Exclude branches created by Dependabot to avoid triggering current workflow | |
| # for PRs initiated by Dependabot. | |
| branches-ignore: | |
| - 'dependabot/**' | |
| pull_request: | |
| branches: | |
| - main | |
| - "release-*" | |
| permissions: | |
| contents: read | |
| jobs: | |
| codespell: | |
| name: Check for spelling errors | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Backup and remove problematic files | |
| run: | | |
| # Backup files that cause false positives | |
| mkdir -p /tmp/skip_backup | |
| find . -name "pyproject.toml" -exec cp --parents {} /tmp/skip_backup/ \; | |
| find . -name "package-lock.json" -exec cp --parents {} /tmp/skip_backup/ \; | |
| find . -name "package.json" -exec cp --parents {} /tmp/skip_backup/ \; | |
| # Remove problematic files temporarily | |
| find . -name "pyproject.toml" -delete | |
| find . -name "package-lock.json" -delete | |
| find . -name "package.json" -delete | |
| - name: Run codespell | |
| run: | | |
| pip install codespell | |
| codespell \ | |
| --check-filenames \ | |
| --skip .git,go.sum,*.png,*.jpg,*.svg,*.gif,*.sum,bin,vendor,node_modules \ | |
| --ignore-words-list fo,nam,te,notin,NotIn \ | |
| . | |
| - name: Restore backed up files | |
| run: | | |
| # Restore backed up files | |
| cd /tmp/skip_backup && find . -type f -exec cp --parents {} $GITHUB_WORKSPACE/ \; |