Add treasury reserve capacity status #884
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| checks: | |
| name: Quality, readiness, docs, and image checks | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e '.[dev]' | |
| - name: Check AGENTS.md | |
| run: python scripts/check_agents.py | |
| - name: Test | |
| run: pytest | |
| - name: Check formatting | |
| run: ruff format --check . | |
| - name: Lint | |
| run: ruff check . | |
| - name: Type check | |
| run: mypy app | |
| - name: Check deploy readiness gate | |
| env: | |
| MERGEWORK_DATABASE_URL: sqlite:////srv/mergework/data/mergework.sqlite3 | |
| MERGEWORK_PUBLIC_BASE_URL: https://staging.mrwk.example.test | |
| MERGEWORK_GITHUB_WEBHOOK_SECRET: webhook-8efc3925bb8746b8a8fd3392c4c48e32 | |
| MERGEWORK_GITHUB_OAUTH_CLIENT_ID: client-id | |
| MERGEWORK_GITHUB_OAUTH_CLIENT_SECRET: oauth-7818e79f9d3a4a1d82ff0e1b9f0b8e42 | |
| MERGEWORK_ADMIN_LOGINS: alice | |
| MERGEWORK_GITHUB_ACCEPTED_LABELERS: alice | |
| MERGEWORK_ADMIN_TOKEN: admin-14dcaab83bb245f2bfb5d5c21a9bb55b | |
| MERGEWORK_COOKIE_SECRET: cookie-27fd1c41324a4bdcb2e4014adc3a6108 | |
| run: python scripts/check_deploy_ready.py | |
| - name: Docs smoke | |
| run: python scripts/docs_smoke.py | |
| - name: Build Docker image | |
| run: docker build -t mergework:ci . |