Provider diagnostics #2
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: Provider diagnostics | |
| run-name: Provider diagnostics | |
| # Monthly (1st, 03:00 UTC) and on demand: | |
| # hits each subtitle provider with a known-good title and fails if one | |
| # returns nothing or an unrecognized response, an early warning that a | |
| # provider changed its site or API before users are affected. | |
| on: | |
| schedule: | |
| - cron: "0 3 1 * *" | |
| workflow_dispatch: | |
| jobs: | |
| diagnose: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: .python-version | |
| - name: Install package | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install . | |
| - name: Run provider diagnostics | |
| run: python -m subsearch.providers.diagnostics |