Enhancement: Update configuration and improve error handling in netwo… #588
Workflow file for this run
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: Python File Header Check | |
| on: | |
| pull_request: | |
| branches: "*" | |
| push: | |
| branches: "*" | |
| jobs: | |
| check-headers: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Run header check | |
| run: python workflow_data/check_py_files.py . | |
| working-directory: ${{ github.workspace }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set status | |
| if: ${{ failure() }} | |
| run: echo "存在不符合规范的文件!" |