Skip to content

Commit 25c32c1

Browse files
committed
Add back full CI
1 parent 58c3cce commit 25c32c1

1 file changed

Lines changed: 111 additions & 114 deletions

File tree

.github/workflows/ci.yml

Lines changed: 111 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -12,154 +12,154 @@ permissions:
1212
contents: read
1313

1414
jobs:
15-
# test-dependencies:
16-
# name: Check running without dependencies
17-
# runs-on: ubuntu-latest
18-
# steps:
19-
# - uses: actions/checkout@v4
20-
21-
# - name: Install uv with Python 3.12
22-
# uses: astral-sh/setup-uv@v5
23-
# with:
24-
# version: "0.7.5"
25-
# python-version: "3.12"
15+
test-dependencies:
16+
name: Check running without dependencies
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
2620

27-
# - name: Install betterproto2
28-
# working-directory: ./betterproto2
29-
# run: uv sync --locked
21+
- name: Install uv with Python 3.12
22+
uses: astral-sh/setup-uv@v5
23+
with:
24+
version: "0.7.5"
25+
python-version: "3.12"
3026

31-
# - name: Install betterproto2_compiler
32-
# working-directory: ./betterproto2_compiler
33-
# run: uv sync --locked
27+
- name: Install betterproto2
28+
working-directory: ./betterproto2
29+
run: uv sync --locked
3430

35-
# - name: Compile test files
36-
# working-directory: ./betterproto2_compiler
37-
# shell: bash
38-
# run: uv run poe generate
31+
- name: Install betterproto2_compiler
32+
working-directory: ./betterproto2_compiler
33+
run: uv sync --locked
3934

40-
# - name: Move compiled files to betterproto2
41-
# shell: bash
42-
# run: cp -r betterproto2_compiler/tests/outputs betterproto2/tests
35+
- name: Compile test files
36+
working-directory: ./betterproto2_compiler
37+
shell: bash
38+
run: uv run poe generate
4339

44-
# - name: Execute test suite
45-
# working-directory: ./betterproto2
46-
# run: uv run poe test
40+
- name: Move compiled files to betterproto2
41+
shell: bash
42+
run: cp -r betterproto2_compiler/tests/outputs betterproto2/tests
4743

44+
- name: Execute test suite
45+
working-directory: ./betterproto2
46+
run: uv run poe test
4847

49-
# - name: Add Pydantic
50-
# working-directory: ./betterproto2
51-
# run: uv sync --locked --extra=pydantic
5248

53-
# - name: Execute test suite
54-
# working-directory: ./betterproto2
55-
# run: uv run poe test
49+
- name: Add Pydantic
50+
working-directory: ./betterproto2
51+
run: uv sync --locked --extra=pydantic
5652

53+
- name: Execute test suite
54+
working-directory: ./betterproto2
55+
run: uv run poe test
5756

58-
# - name: Add all but Pydantic
59-
# working-directory: ./betterproto2
60-
# run: uv sync --locked --extra=grpclib --extra=grpcio --extra=protobuf
6157

62-
# - name: Execute test suite
63-
# working-directory: ./betterproto2
64-
# run: uv run poe test
58+
- name: Add all but Pydantic
59+
working-directory: ./betterproto2
60+
run: uv sync --locked --extra=grpclib --extra=grpcio --extra=protobuf
6561

62+
- name: Execute test suite
63+
working-directory: ./betterproto2
64+
run: uv run poe test
6665

67-
# - name: Add grpclib
68-
# working-directory: ./betterproto2
69-
# run: uv sync --locked --extra=grpclib
7066

71-
# - name: Execute test suite
72-
# working-directory: ./betterproto2
73-
# run: uv run poe test
67+
- name: Add grpclib
68+
working-directory: ./betterproto2
69+
run: uv sync --locked --extra=grpclib
7470

71+
- name: Execute test suite
72+
working-directory: ./betterproto2
73+
run: uv run poe test
7574

76-
# - name: Add all but grpclib
77-
# working-directory: ./betterproto2
78-
# run: uv sync --locked --extra=pydantic --extra=grpcio --extra=protobuf
7975

80-
# - name: Execute test suite
81-
# working-directory: ./betterproto2
82-
# run: uv run poe test
76+
- name: Add all but grpclib
77+
working-directory: ./betterproto2
78+
run: uv sync --locked --extra=pydantic --extra=grpcio --extra=protobuf
8379

80+
- name: Execute test suite
81+
working-directory: ./betterproto2
82+
run: uv run poe test
8483

85-
# - name: Add grpcio
86-
# working-directory: ./betterproto2
87-
# run: uv sync --locked --extra=grpcio
8884

89-
# - name: Execute test suite
90-
# working-directory: ./betterproto2
91-
# run: uv run poe test
85+
- name: Add grpcio
86+
working-directory: ./betterproto2
87+
run: uv sync --locked --extra=grpcio
9288

89+
- name: Execute test suite
90+
working-directory: ./betterproto2
91+
run: uv run poe test
9392

94-
# - name: Add all but grpcio
95-
# working-directory: ./betterproto2
96-
# run: uv sync --locked --extra=pydantic --extra=grpclib --extra=protobuf
9793

98-
# - name: Execute test suite
99-
# working-directory: ./betterproto2
100-
# run: uv run poe test
94+
- name: Add all but grpcio
95+
working-directory: ./betterproto2
96+
run: uv sync --locked --extra=pydantic --extra=grpclib --extra=protobuf
10197

98+
- name: Execute test suite
99+
working-directory: ./betterproto2
100+
run: uv run poe test
102101

103-
# - name: Add protobuf
104-
# working-directory: ./betterproto2
105-
# run: uv sync --locked --extra=protobuf
106102

107-
# - name: Execute test suite
108-
# working-directory: ./betterproto2
109-
# run: uv run poe test
103+
- name: Add protobuf
104+
working-directory: ./betterproto2
105+
run: uv sync --locked --extra=protobuf
110106

107+
- name: Execute test suite
108+
working-directory: ./betterproto2
109+
run: uv run poe test
111110

112-
# - name: Add all but protobuf
113-
# working-directory: ./betterproto2
114-
# run: uv sync --locked --extra=pydantic --extra=grpclib --extra=grpcio
115111

116-
# - name: Execute test suite
117-
# working-directory: ./betterproto2
118-
# run: uv run poe test
112+
- name: Add all but protobuf
113+
working-directory: ./betterproto2
114+
run: uv sync --locked --extra=pydantic --extra=grpclib --extra=grpcio
119115

120-
# tests:
121-
# name: ${{ matrix.os }} / ${{ matrix.python-version }}
122-
# runs-on: ${{ matrix.os }}-latest
123-
# strategy:
124-
# fail-fast: false
125-
# matrix:
126-
# os: [Ubuntu, MacOS, Windows]
127-
# python-version: ['3.10', '3.11', '3.12', '3.13']
128-
# steps:
129-
# - uses: actions/checkout@v4
116+
- name: Execute test suite
117+
working-directory: ./betterproto2
118+
run: uv run poe test
119+
120+
tests:
121+
name: ${{ matrix.os }} / ${{ matrix.python-version }}
122+
runs-on: ${{ matrix.os }}-latest
123+
strategy:
124+
fail-fast: false
125+
matrix:
126+
os: [Ubuntu, MacOS, Windows]
127+
python-version: ['3.10', '3.11', '3.12', '3.13']
128+
steps:
129+
- uses: actions/checkout@v4
130130

131-
# - name: Install uv with Python ${{ matrix.python-version }}
132-
# uses: astral-sh/setup-uv@v5
133-
# with:
134-
# version: "0.7.5"
135-
# python-version: ${{ matrix.python-version }}
131+
- name: Install uv with Python ${{ matrix.python-version }}
132+
uses: astral-sh/setup-uv@v5
133+
with:
134+
version: "0.7.5"
135+
python-version: ${{ matrix.python-version }}
136136

137-
# - name: Install betterproto2
138-
# working-directory: ./betterproto2
139-
# run: uv sync --locked --all-extras --all-groups
137+
- name: Install betterproto2
138+
working-directory: ./betterproto2
139+
run: uv sync --locked --all-extras --all-groups
140140

141-
# - name: Install betterproto2_compiler
142-
# working-directory: ./betterproto2_compiler
143-
# run: uv sync --locked --all-extras --all-groups
141+
- name: Install betterproto2_compiler
142+
working-directory: ./betterproto2_compiler
143+
run: uv sync --locked --all-extras --all-groups
144144

145-
# - name: Test betterproto2_compiler
146-
# working-directory: ./betterproto2_compiler
147-
# shell: bash
148-
# run: uv run poe test
145+
- name: Test betterproto2_compiler
146+
working-directory: ./betterproto2_compiler
147+
shell: bash
148+
run: uv run poe test
149149

150-
# - name: Compile test files
151-
# working-directory: ./betterproto2_compiler
152-
# shell: bash
153-
# run: uv run poe generate
150+
- name: Compile test files
151+
working-directory: ./betterproto2_compiler
152+
shell: bash
153+
run: uv run poe generate
154154

155-
# - name: Move compiled files to betterproto2
156-
# shell: bash
157-
# run: cp -r betterproto2_compiler/tests/outputs betterproto2/tests
155+
- name: Move compiled files to betterproto2
156+
shell: bash
157+
run: cp -r betterproto2_compiler/tests/outputs betterproto2/tests
158158

159-
# - name: Execute test suite
160-
# working-directory: ./betterproto2
161-
# shell: bash
162-
# run: uv run poe test
159+
- name: Execute test suite
160+
working-directory: ./betterproto2
161+
shell: bash
162+
run: uv run poe test
163163

164164
conformance:
165165
runs-on: ubuntu-latest
@@ -175,9 +175,6 @@ jobs:
175175
- name: Install conformance runner
176176
run: npm install -g protobuf-conformance
177177

178-
# - name: Verify runner
179-
# run: conformance_test_runner --help
180-
181178
- name: Install uv with Python 3.10
182179
uses: astral-sh/setup-uv@v5
183180
with:

0 commit comments

Comments
 (0)