-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (56 loc) · 2.16 KB
/
Copy pathlive.yml
File metadata and controls
65 lines (56 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Live
# The tiers that hit GitHub's real API. Scheduled rather than on push: they
# spend rate-limit budget, and two concurrent runs sharing a token throttle
# each other into failures that say nothing about the code.
on:
schedule:
- cron: "23 6 * * *"
workflow_dispatch:
concurrency:
group: github-live
cancel-in-progress: false
env:
# The workflow's own token: 1,000 requests an hour per repository, plenty
# for both tiers, and read-only here. The worker reads VGI_GITHUB_TOKEN
# only because a lint run cannot issue CREATE SECRET first.
VGI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read
jobs:
live:
name: Live API tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- run: uv sync --no-sources
# The test fixtures run `INSTALL vgi FROM community; LOAD vgi;` themselves,
# so a fresh runner needs no setup step. vgi-lint installs it on its own.
# GitHub's own behaviour, no DuckDB: the facts the design rests on.
- name: Live API behaviour
run: uv run --no-sources pytest -q -m live tests/test_live.py
- name: End-to-end SQL
run: uv run --no-sources pytest -q -m live tests/test_end_to_end.py
# One HTTP server, several clients. The server runs without
# VGI_GITHUB_TOKEN, so any authentication seen came from a client's own
# secret — and must not reach any other client.
- name: HTTP transport and client isolation
run: uv run --no-sources pytest -q -m live tests/test_http_transport.py
behavioural:
name: vgi-lint (executes every example)
runs-on: ubuntu-latest
timeout-minutes: 60
needs: live
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- run: uv sync --no-sources
- name: vgi-lint (structural + behavioural)
run: >
uvx --no-sources --from vgi-lint-check==0.81.1 vgi-lint lint "uv run --no-sources github_worker.py"
--execute-concurrency 1 --no-check-links --audit-waivers --fail-on error