diff --git a/.github/workflows/test-complete.yml b/.github/workflows/test-complete.yml index 45e2fe5..1d3b5de 100644 --- a/.github/workflows/test-complete.yml +++ b/.github/workflows/test-complete.yml @@ -177,6 +177,15 @@ jobs: - name: Build SQL CLI run: cargo build --release + # data/test_simple_*.csv are generated, not committed (.gitignore's + # `test_*.csv` rule covers them), so several examples that pass locally + # fail here without this. Mirrors the same step in the Python Tests job. + - name: Generate test data + run: | + if [ ! -f "data/test_simple_math.csv" ] || [ ! -f "data/test_simple_strings.csv" ]; then + uv run python scripts/generate_simple_test.py + fi + - name: Run examples test suite run: | uv run python tests/integration/test_examples.py diff --git a/.gitignore b/.gitignore index a9267e0..e6ad7d8 100644 --- a/.gitignore +++ b/.gitignore @@ -111,6 +111,9 @@ trades_*.json trades_*.csv test_shift_g.rs test_*.csv +# ...but this one is a hand-written fixture used by examples/, not +# generated output, so it has to ship with the repo (see CI examples job). +!data/test_dummy.csv test_state_comparison test_results.txt tests/__pycache__/ diff --git a/data/test_dummy.csv b/data/test_dummy.csv new file mode 100644 index 0000000..92a2208 --- /dev/null +++ b/data/test_dummy.csv @@ -0,0 +1,3 @@ +id,price,category,status +1,99.99,A,active +2,150.50,B,pending