-
Notifications
You must be signed in to change notification settings - Fork 0
99 lines (79 loc) · 2.61 KB
/
conformance.yaml
File metadata and controls
99 lines (79 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
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Conformance
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
defaults:
run:
shell: bash
working-directory: ./conformance
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
server:
runs-on: ubuntu-2404-4-cores
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4
# https://github.com/actions/setup-python
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
# https://github.com/astral-sh/setup-uv
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-suffix: "server"
cache-dependency-glob: "./conformance/uv.lock"
- name: Install the project
run: uv sync --frozen --all-extras
# https://github.com/actions/setup-go
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
check-latest: true
cache: true
- name: Install the connectconformance bianry
run: |
go install -v connectrpc.com/conformance/cmd/connectconformance@latest
- name: Run the connectconformance for server
run: |
connectconformance --trace --vv --conf ./server_config.yaml --mode server --known-flaky @./server_known_flaky.yaml -- uv run python server_runner.py
client:
runs-on: ubuntu-2404-4-cores
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4
# https://github.com/actions/setup-python
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
# https://github.com/astral-sh/setup-uv
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-suffix: "client"
cache-dependency-glob: "./conformance/uv.lock"
- name: Install the project
run: uv sync --frozen --all-extras
# https://github.com/actions/setup-go
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
check-latest: true
cache: true
- name: Install the connectconformance bianry
run: |
go install -v connectrpc.com/conformance/cmd/connectconformance@latest
- name: Run the connectconformance for client
run: |
connectconformance --trace --conf ./client_config.yaml --mode client --known-flaky @./client_known_flaky.yaml -- uv run python client_runner.py