-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (80 loc) · 2.61 KB
/
Copy pathci.yml
File metadata and controls
85 lines (80 loc) · 2.61 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
python -m pip install --upgrade pip
pip install . pytest
- name: Test
run: pytest tests/ -q
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
# Four version literals, two that manifests publish and two that the
# shipped code reports. 0.4.0 went out with only the manifests bumped.
# Named explicitly here as well as under pytest so the failure reads as
# "versions disagree" on the job list, not as one line of test output.
- name: Versions agree
run: python tests/test_versions.py
- name: Build and check
run: |
pip install build twine
python -m build
twine check dist/*
node:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ["18", "20", "22", "24"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Golden fixtures are fresh
run: |
pip install .
python tests/gen_golden.py --check
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: JS parity and unit tests
run: node --test
working-directory: js
plugin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
# `plugin validate` is a local schema check on files in the checkout: it
# reads no credentials and makes no API call, so it runs on a bare runner.
# Two invocations because it validates one manifest per call and picks the
# marketplace when both live at the path given. The plugin.json call is the
# one that also checks hooks/hooks.json. --strict fails on the warnings the
# runtime tolerates, which is exactly the class that ships a silent no-op.
- name: Plugin and marketplace manifests are valid
run: |
npm install -g @anthropic-ai/claude-code
claude plugin validate .claude-plugin/plugin.json --strict
claude plugin validate . --strict