Repository navigation
50 lines (46 loc) · 1.77 KB
/
Copy pathci.yml
File metadata and controls
50 lines (46 loc) · 1.77 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
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
commits:
# A commit message is published text too: the commits this push or pull request adds name no one
# inside the team and point at no internal room or tracker, like the tree.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: python3 scripts/public_words.py --commits "$RANGE"
env:
RANGE: ${{ github.event_name == 'pull_request' && format('{0}..{1}', github.event.pull_request.base.sha, github.event.pull_request.head.sha) || (github.event.before && !startsWith(github.event.before, '0000000') && format('{0}..{1}', github.event.before, github.sha)) || github.sha }}
gates:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- run: uv sync
- run: uv run pytest -q
- run: uv run ruff check .
- run: uv run ruff format --check .
- run: uv run mypy --strict src tests
- run: uv run python codegen/generate_schema.py --check
# Published text names no one inside the team and points at no internal room or tracker.
- run: uv run python scripts/public_words.py
wire:
# keel's own OpenAPI document and the public demo world, read only. Red here with
# the gates above green means the server moved under the client, not that a change broke it.
runs-on: ubuntu-latest
env:
OW_OPENAPI: https://www.onlyworlds.com/api/v2/openapi.json
OW_LIVE: "1"
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- run: uv sync
- run: uv run pytest -q tests/test_wire.py tests/test_live.py