chore: guard manual MAX reauth #77
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: tests | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| jobs: | |
| pytest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements-dev.txt | |
| - name: Run tests | |
| env: | |
| PYTHONPATH: . | |
| run: | | |
| python -m compileall src tests | |
| ruff check . | |
| ruff check src/bridge --select E9,F63,F7,F82,F401,F841,B,C4,SIM,RET | |
| mypy \ | |
| src/bridge/contracts.py \ | |
| src/db/migrations.py \ | |
| src/adapters/max/backends/base.py \ | |
| src/adapters/max/deps.py \ | |
| src/adapters/max/state.py \ | |
| src/adapters/max/payload.py \ | |
| src/adapters/max/users.py \ | |
| src/adapters/max/errors.py \ | |
| src/adapters/max/media/ua.py \ | |
| src/adapters/max/media/downloader.py | |
| mypy \ | |
| --check-untyped-defs \ | |
| --no-implicit-optional \ | |
| --ignore-missing-imports \ | |
| --follow-imports=silent \ | |
| src/bridge/core.py \ | |
| src/bridge/status.py \ | |
| src/bridge/media_retry.py \ | |
| src/bridge/recovery/scheduler.py \ | |
| src/bridge/commands/dispatcher.py | |
| pytest -q | |
| ansible: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| cache: "pip" | |
| - name: Install Ansible tooling | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ansible-core ansible-lint | |
| ansible-galaxy collection install -r infra/ansible/requirements.yml | |
| - name: Prepare ephemeral inventory | |
| run: | | |
| cp infra/ansible/inventory/production.ini.example infra/ansible/inventory/production.ini | |
| - name: Syntax check playbooks | |
| working-directory: infra/ansible | |
| run: | | |
| ansible-playbook --syntax-check site.yml | |
| ansible-playbook --syntax-check deploy.yml | |
| ansible-playbook --syntax-check backup.yml | |
| ansible-playbook --syntax-check recover.yml | |
| ansible-playbook --syntax-check bootstrap.yml | |
| ansible-playbook --syntax-check hardening.yml | |
| - name: Lint Ansible | |
| working-directory: infra/ansible | |
| run: ansible-lint --format=pep8 |