Skip to content

Commit b527d5e

Browse files
Action to run conformance test (#176)
* Conformance action * Compile files for conformance test * Fix Python version * Run the tests * Format code * Add failing tests list * Format proto files * Fix lint * Format code * Add back full CI * Run conformance tests with all Python versions on MacOS and Ubuntu * Pin conformance test version
1 parent e79a240 commit b527d5e

File tree

6 files changed

+759
-0
lines changed

6 files changed

+759
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,29 @@ jobs:
160160
working-directory: ./betterproto2
161161
shell: bash
162162
run: uv run poe test
163+
164+
# Run conformance test on all Ubuntu and MacOS versions
165+
- name: Install Node.js
166+
if: matrix.os == 'Ubuntu' || matrix.os == 'MacOS'
167+
uses: actions/setup-node@v6
168+
with:
169+
node-version: 24
170+
171+
- name: Install conformance runner
172+
if: matrix.os == 'Ubuntu' || matrix.os == 'MacOS'
173+
run: npm install -g [email protected]
174+
175+
- name: Create test script
176+
if: matrix.os == 'Ubuntu' || matrix.os == 'MacOS'
177+
shell: bash
178+
working-directory: ./betterproto2
179+
run: |
180+
echo '#!/bin/bash' > script.sh
181+
echo 'python -m tests.conformance.main' >> script.sh
182+
chmod +x script.sh
183+
184+
- name: Run conformance tests
185+
if: matrix.os == 'Ubuntu' || matrix.os == 'MacOS'
186+
working-directory: ./betterproto2
187+
run: |
188+
uv run conformance_test_runner --failure_list tests/conformance/failing_tests.txt ./script.sh

0 commit comments

Comments
 (0)