Merge pull request #261 from ruaan-deysel/copilot/fix-parity-check-speed #10
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: API Boundary Check | |
| # Blocks merges that bypass the unraid-api library with direct network I/O. | |
| # All Unraid server communication MUST go through UnraidClient (unraid-api). | |
| # Missing library features → open an issue at https://github.com/ruaan-deysel/unraid-api | |
| on: | |
| push: | |
| paths: | |
| - "custom_components/unraid/**/*.py" | |
| - "script/check_api_boundary.py" | |
| pull_request: | |
| paths: | |
| - "custom_components/unraid/**/*.py" | |
| - "script/check_api_boundary.py" | |
| permissions: | |
| contents: read | |
| jobs: | |
| api-boundary: | |
| name: No unraid-api bypass | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Check API boundary | |
| run: python script/check_api_boundary.py |