-
-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* codespell workflow * use micromamba * Update env name * Checkout PR's code when event is pull request target * Update codespell configuration * update codespell command to run in docs only * Remove codespell version while installation * Remove unwanted warnings from the logs * Run codespell manually
- Loading branch information
1 parent
b79b61e
commit be4ec9a
Showing
2 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: codespell | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
pull_request_target: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
codespell: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
if: github.event_name != 'pull_request_target' | ||
|
||
- name: Checkout pull/${{ github.event.number }} | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
if: github.event_name == 'pull_request_target' | ||
|
||
- name: Setup micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-name: fetch-env | ||
create-args: >- | ||
python | ||
- name: Install Codespell | ||
run: pip install codespell | ||
|
||
- name: Run codespell | ||
run: | | ||
codespell docs/ |
This file contains 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