Skip to content

Commit c9cd4de

Browse files
committed
Add correctness check via CI
1 parent 9db2b1d commit c9cd4de

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Correctness Check
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build-test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Install Valgrind
16+
run: sudo apt-get update && sudo apt-get install -y valgrind
17+
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v6
20+
with:
21+
version: "0.9.8"
22+
23+
- name: Set up Python
24+
run: uv python install
25+
26+
- name: Clone partdiff_tester
27+
run: git clone https://github.com/parcio/partdiff_tester.git
28+
29+
- name: Run small correctness check subset with valgrind
30+
run: |
31+
cd partdiff_tester && \
32+
uv run pytest -n auto --verbose \
33+
--executable='../partdiff' \
34+
--strictness=4 \
35+
--valgrind \
36+
--shuffle=42 \
37+
--max-num-tests=5
38+
39+
- name: Run correctness check
40+
run: |
41+
cd partdiff_tester && \
42+
uv run pytest -n auto --verbose \
43+
--executable='../partdiff' \
44+
--strictness=4 \
45+
--shuffle=42

0 commit comments

Comments
 (0)