Files
time/.github/workflows/ci.yml
T
teahubxyz 1b125e41ef
ci / test (pull_request) Successful in 36s
port: Time runs on Gitea (teahub.xyz)
GitHub was the proof of concept; prod is Gitea on Fly. time.py speaks Gitea's API: limit not per_page, labels by id,
trust via the collaborator permission endpoint (no author_association), commit statuses as checks (no check-runs),
POST .../merge {Do: squash}, POST .../branches, GET .../pulls/N.diff, bot user gitea-actions. .gitea/workflows is
protected like .github/workflows. The mention workflow filters only Time's own comments; who may spend credits is
checked in time.py. Tests: fake Gitea; venture-loop tests gated behind TIME_TEST_VENTURE until venture.py is ported.
2026-10-13 23:53:48 -07:00

20 lines
535 B
YAML

name: ci
# Time's own tests. Also the check that lets Time auto-merge changes to itself.
on:
pull_request:
push:
branches: [main]
workflow_dispatch: # Time can run CI on a worker's PR branch by hand
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4 # node 22+ has node:sqlite, which the passkey test runs on
with:
node-version: 22
- run: python3 .github/time/test_time.py