Skip to content

Commit fc2bc45

Browse files
committed
Exercise the property-based tests in ci
1 parent df3fcf9 commit fc2bc45

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/xtest.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,36 @@ jobs:
4646
4747
tox -r -e $(echo "${{ matrix.python }}" | tr -d .) -- xtest
4848
49+
hypo_test:
50+
name: Property Based Tests
51+
runs-on: self-hosted
52+
steps:
53+
- name: Clear workspace
54+
run: rm -rf "${GITHUB_WORKSPACE:?}/*"
55+
56+
- name: Checkout
57+
uses: actions/[email protected]
58+
with:
59+
fetch-depth: 1
60+
show-progress: false
61+
persist-credentials: false
62+
63+
- name: Set version statically
64+
run: |
65+
VERSION=0.0.0
66+
sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py
67+
68+
- name: Run tests
69+
uses: ./.github/actions/run-in-container
70+
with:
71+
image: danielflook/python-minifier-build:python3.14-2025-09-26
72+
run: |
73+
74+
pip3.14 install .
75+
pip3.14 install hypothesis pytest
76+
77+
pytest hypo_test --hypothesis-show-statistics
78+
4979
test-corpus:
5080
needs: test
5181
name: Minify Corpus

hypo_test/test_it.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from datetime import timedelta
44

55
from hypothesis import HealthCheck, Verbosity, example, given, note, settings
6-
from hypothesis.strategies import booleans
76

87
from python_minifier.ast_annotation import add_parent as add_parent_refs
98
from python_minifier.ast_compare import compare_ast

0 commit comments

Comments
 (0)