Skip to content

Temperature settings (#98) #104

Temperature settings (#98)

Temperature settings (#98) #104

Workflow file for this run

name: Spelling Check
on:
pull_request:
paths:
- '**.py'
- '**.md'
push:
branches:
- main
paths:
- '**.py'
- '**.md'
workflow_dispatch:
jobs:
check-spelling:
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: "Install codespell"
run: pip install codespell
- name: "Get changed files"
id: changed-files
uses: tj-actions/changed-files@v41
- name: "Run codespell on changed files"
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
IFS=' ' read -r -a files_array <<< "$ALL_CHANGED_FILES"
for file in "${files_array[@]}"; do
echo "$file was changed"
if [[ "$file" == *.py || "$file" == *.md ]]; then
echo "Checking: $file"
spell_output=$(codespell "$file" 2>&1) || true
if [ -n "$spell_output" ]; then
echo "::warning file=$file::$spell_output"
fi
else
echo "Skipping: $file (not .py or .md)"
fi
done