feat:增加清理多余日志功能 #1114
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: check | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| paths: | |
| - ".github/workflows/check.yml" | |
| - "assets/**" | |
| - "**.py" | |
| pull_request: | |
| branches: | |
| - "**" | |
| paths: | |
| - ".github/workflows/check.yml" | |
| - "assets/**" | |
| - "**.py" | |
| workflow_dispatch: | |
| jobs: | |
| resource: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| # pip install maafw | |
| - name: Install maafw | |
| run: | | |
| python -m pip install --upgrade pip | |
| # 在 requirements.txt 中查找以 maafw 开头的行(例如: maafw==4.5.6 或 maafw>=4.5) | |
| line=$(grep -E '^\s*maafw' requirements.txt | head -n 1) | |
| if [ -n "$line" ]; then | |
| pkg=$(echo "$line" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//') | |
| else | |
| pkg='maafw' | |
| fi | |
| echo "Installing $pkg" | |
| python -m pip install --upgrade $pkg | |
| - name: Check Resource | |
| run: | | |
| python ./tools/ci/check_resource.py ./assets/resource/base | |
| - name: Check Interface | |
| run: | | |
| npm ci | |
| npx @nekosu/maa-tools check |