check_no_chinese_comments.yml 603 B

12345678910111213141516171819202122232425262728293031
  1. name: Check for Chinese comments
  2. on:
  3. push:
  4. branches:
  5. - 'main'
  6. pull_request:
  7. branches:
  8. - main
  9. jobs:
  10. check-chinese-comments:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Check out repository
  14. uses: actions/checkout@v2
  15. - name: Set up Python
  16. uses: actions/setup-python@v2
  17. with:
  18. python-version: 3.9
  19. - name: Install dependencies
  20. run: |
  21. python -m pip install --upgrade pip
  22. pip install zhon
  23. - name: Run script to check for Chinese comments
  24. run: |
  25. python .github/workflows/check_no_chinese_comments.py