Skip to content

Commit 8e6d9de

Browse files
committed
Rm dependency on yaml actions
1 parent b7cda95 commit 8e6d9de

File tree

3 files changed

+8
-22
lines changed

3 files changed

+8
-22
lines changed

.github/actions/run-examples/action.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,10 @@ runs:
3030
ref: ${{ inputs.head-ref }}
3131
fetch-depth: 0 # Full history needed for fetch/rebase
3232
- name: Patch tests/test_examples_run.yaml check with modified files
33-
uses: fjogeleit/yaml-update-action@main
34-
with:
35-
changes: |
36-
{
37-
"tests/test_examples_run.yaml": {
38-
"check": ${{ inputs.check }}
39-
}
40-
}
41-
commitChange: false
33+
shell: bash
34+
run: |
35+
yq -i '.check = (${{ inputs.check }} | from_json )' tests/test_examples_run.yaml
36+
4237
- name: Print test Run Examples config
4338
shell: bash
4439
run: cat tests/test_examples_run.yaml

.github/workflows/run-examples-prep.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,9 @@ jobs:
6363
fetch-depth: 0
6464
- name: Patch tests/test_examples_run.yaml with update_results to False, only for the last matrix version
6565
if: ${{ steps.parse-run-examples-config.outputs.update_results && matrix.python-version == '3.13' }}
66-
uses: fjogeleit/yaml-update-action@main
67-
with:
68-
changes: |
69-
{
70-
"tests/test_examples_run.yaml": {
71-
"update_results": false
72-
}
73-
}
74-
commitChange: false
66+
shell: bash
67+
run: |
68+
yq -i '.update_results = ('false')' tests/test_examples_run.yaml
7569
- name: Push the new run-examples yaml config
7670
if: ${{ steps.parse-run-examples-config.outputs.update_results && matrix.python-version == '3.13' }}
7771
shell: bash

tests/test_examples_run.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
update_results: false
2-
check:
3-
- examples/chatbot/chatbot.pdl
4-
- examples/demo/9-react.pdl
5-
- examples/react/demo.pdl
2+
check: ["s1", "s2"]
63
skip:
74
- examples/cldk/cldk-assistant.pdl
85
- examples/gsm8k/gsm8.pdl

0 commit comments

Comments
 (0)