Skip to content

Commit 1313ad4

Browse files
committed
ci: extract extension test merge into reusable composite action
Used in both test-smokes-parallel.yml (for bucket discovery) and test-smokes.yml (for each test runner job's fresh checkout).
1 parent 6957302 commit 1313ad4

3 files changed

Lines changed: 19 additions & 10 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Merge extension tests into test tree"
2+
description: >
3+
Copies test files from extension subtrees into the main test directories
4+
so they are discovered by the test runner and bucket creation.
5+
Extension tests live in their own repos (single source of truth) and are
6+
pulled in via git subtree — this step avoids duplicating them.
7+
8+
runs:
9+
using: "composite"
10+
steps:
11+
- name: Merge julia-engine tests
12+
shell: bash
13+
run: |
14+
SUBTREE=src/resources/extension-subtrees/julia-engine/tests
15+
cp -r "$SUBTREE/docs/julia-engine" tests/docs/julia-engine
16+
cp -r "$SUBTREE/smoke/julia-engine" tests/smoke/julia-engine

.github/workflows/test-smokes-parallel.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
with:
6161
version: ${{ github.ref == 'refs/heads/main' && 'pre-release' || 'release' }}
6262

63+
- uses: ./.github/actions/merge-extension-tests
64+
6365
- name: Create Job for tests
6466
id: tests-buckets
6567
run: |

.github/workflows/test-smokes.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -241,16 +241,7 @@ jobs:
241241
echo "Julia Jupyter:"
242242
uv run julia --project=. -e "import IJulia;println(IJulia.JUPYTER);println(IJulia.find_jupyter_subcommand(\"notebook\"))"
243243
244-
# Julia engine tests live in the julia-engine extension repo
245-
# (PumasAI/quarto-julia-engine) and are pulled in via git subtree.
246-
# We merge them into the test tree here so the test runner discovers
247-
# them alongside the other smoke tests, avoiding test duplication.
248-
- name: Merge julia-engine tests into test tree
249-
shell: bash
250-
run: |
251-
SUBTREE=src/resources/extension-subtrees/julia-engine/tests
252-
cp -r "$SUBTREE/docs/julia-engine" tests/docs/julia-engine
253-
cp -r "$SUBTREE/smoke/julia-engine" tests/smoke/julia-engine
244+
- uses: ./.github/actions/merge-extension-tests
254245

255246
- name: Setup timing file for timed test
256247
if: ${{ matrix.time-test == true }}

0 commit comments

Comments
 (0)