Skip to content

改善1

改善1 #29

name: Check Encoding
on:
push:
paths-ignore:
- '**/*.md'
- '.gitignore'
- '.editorconfig'
pull_request:
paths-ignore:
- '**/*.md'
- '.gitignore'
- '.editorconfig'
workflow_dispatch:
jobs:
check-encoding:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0 # 過去の履歴も含めて全て取得 (checkEncoding.py で origin/master にアクセスするため)
- name: Show environment variables for debug
run: set
shell: cmd
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Python version check
run: python --version
shell: cmd
- name: Upgrade pip
run: python -m pip install --upgrade pip
shell: cmd
- name: Install chardet
run: python -m pip install chardet==6.0.0
shell: cmd
- name: Check encoding
run: python checkEncoding.py
shell: cmd