Publish AstrBot FXMacroData plugin #1
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: Validate public plugin artifact | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install public plugin dependencies | |
| run: python -m pip install --upgrade pip && python -m pip install -r requirements.txt pytest pytest-xdist ruff | |
| - name: Verify exact public artifact contents | |
| run: python scripts/verify_public_artifact.py | |
| - name: Run plugin tests | |
| run: python -m pytest tests -n 0 | |
| - name: Lint public plugin source | |
| run: python -m ruff check . |