Repository navigation
76 lines (66 loc) · 2.02 KB
/
Copy pathtest-plugins-debian.yml
File metadata and controls
76 lines (66 loc) · 2.02 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
name: Test built-in plugins on Debian trixie
# 内置插件共用一个 CI job,依次运行各自测试。
# 安装最新的 Goldfish,与主测试 workflow 保持一致。
on:
workflow_dispatch:
push:
branches: [main]
paths:
- '.gf/gfcode/**'
- '.gf/tests/**'
- 'ai/**'
- 'agent/**'
- 'code/**'
- 'review/**'
- 'tests/**'
- 'web-search/**'
- 'gfproject.json'
- '.github/workflows/test-plugins-debian.yml'
pull_request:
paths:
- '.gf/gfcode/**'
- '.gf/tests/**'
- 'ai/**'
- 'agent/**'
- 'code/**'
- 'review/**'
- 'tests/**'
- 'web-search/**'
- 'gfproject.json'
- '.github/workflows/test-plugins-debian.yml'
env:
DEBIAN_FRONTEND: noninteractive
jobs:
plugins:
container: debian:trixie
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Install dependencies
run: |
apt-get update
apt-get install -y git curl ca-certificates python3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: git add safe directory
run: git config --global --add safe.directory '*'
- name: Install Goldfish (latest)
run: |
TAG=$(curl -fsSL -H "User-Agent: gfcode-ci" \
-H "Authorization: Bearer ${{ github.token }}" \
https://api.github.com/repos/MoganLab/goldfish/releases/latest \
| python3 -c "import sys, json; print(json.load(sys.stdin)['tag_name'])")
echo "Latest goldfish release: $TAG"
curl -fsSL -o /tmp/goldfish.deb \
"https://github.com/MoganLab/goldfish/releases/download/$TAG/goldfish-scheme-x86_64-$TAG.deb"
apt-get install -y /tmp/goldfish.deb
gf version
- name: Test tps project extension
run: gf test .gf/tests/gfcode
- name: Test review plugin
run: |
gf test review/tests/gfcode
- name: Test web-search plugin
run: |
gf test web-search/tests/gfcode