Skip to content

Commit 2ca59a7

Browse files
committed
Update workflow paths to use 'samples' directory instead of 'packages/sample' and adjust documentation links accordingly
1 parent f758d16 commit 2ca59a7

8 files changed

Lines changed: 10 additions & 14 deletions

File tree

.github/workflows/anthropic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- ".github/workflows/anthropic.yml"
1313
- "packages/core/**/*"
1414
- "packages/cli/**/*"
15-
- "packages/samples/**/*"
15+
- "samples/**/*"
1616
concurrency:
1717
group: ${{ github.workflow }}-${{ github.ref }}-anthropic
1818
cancel-in-progress: true

.github/workflows/azure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- ".github/workflows/azure.yml"
1313
- "packages/core/**/*"
1414
- "packages/cli/**/*"
15-
- "packages/samples/**/*"
15+
- "samples/**/*"
1616
concurrency:
1717
group: ${{ github.workflow }}-${{ github.ref }}-azure
1818
cancel-in-progress: true

.github/workflows/cli-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
- name: unit tests
2323
run: pnpm test:samples
2424
- name: run code-annotator
25-
run: node packages/cli/dist/src/index.js run code-annotator packages/sample/src/counting.py -l Test --out-trace $GITHUB_STEP_SUMMARY
25+
run: node packages/cli/dist/src/index.js run code-annotator samples/sample/src/counting.py -l Test --out-trace $GITHUB_STEP_SUMMARY

.github/workflows/genai-commit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- "packages/core/**"
99
- "packages/api/**"
1010
- "packages/runtime/**"
11-
- "packages/sample/**"
11+
- "sample/**"
1212
- "packages/cli/**"
1313
concurrency:
1414
group: -genai-test-${{ github.workflow }}-${{ github.ref }}

.github/workflows/ollama.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ env:
2525
jobs:
2626
tests:
2727
runs-on: ubuntu-latest
28+
env:
29+
OLLAMA_HOST: "http://localhost:11434"
2830
steps:
2931
- uses: actions/checkout@v4
3032
with:
@@ -44,15 +46,9 @@ jobs:
4446
- run: pnpm ollama:start
4547
- run: pnpm whisper:start
4648
- run: pnpm test:ci --model ollama:llama3.2:1b --out ./temp/summarize-ollama-phi3
47-
env:
48-
OLLAMA_HOST: "http://localhost:11434"
4949
- name: run convert-ollama-phi3
50-
run: pnpm cli convert summarize --model ollama:llama3.2:1b "packages/sample/src/rag/*.md" --cache-name sum
51-
env:
52-
OLLAMA_HOST: "http://localhost:11434"
50+
run: pnpm cli convert summarize --model ollama:llama3.2:1b "samples/sample/src/rag/*.md" --cache-name sum
5351
- name: run transcribe
5452
run: pnpm run:script video-transcript --model ollama:llama3.2:1b --out ./temp/summarize-ollama-phi3 --out-output $GITHUB_STEP_SUMMARY
55-
env:
56-
OLLAMA_HOST: "http://localhost:11434"
5753
- run: cat devproxy.log
5854
if: always()

docs/src/content/docs/blog/continuous-translations.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ To be successful, we need:
7373
- idempotency: if translations are already available, the results should be cached and the script should be a no-op.
7474
- run automatically in a GitHub Action and use GitHub Models for inference.
7575

76-
Let's get going! If you want to read the code, [here is the script](https://github.com/microsoft/genaiscript/blob/dev/packages/sample/genaisrc/mdtranslator.genai.mts).
76+
Let's get going! If you want to read the code, [here is the script](https://github.com/microsoft/genaiscript/blob/dev/samples/sample/genaisrc/mdtranslator.genai.mts).
7777

7878
## Iterative Markdown Translations
7979

docs/src/content/docs/fr/blog/continuous-translations.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Pour réussir, nous avons besoin :
7777
* d'idempotence : si les traductions sont déjà disponibles, les résultats doivent être mis en cache et le script ne doit effectuer aucune action.
7878
* d'une exécution automatique via une GitHub Action et de l'utilisation de GitHub Models pour l'inférence.
7979

80-
C'est parti ! Si vous souhaitez consulter le code, [voici le script](https://github.com/microsoft/genaiscript/blob/dev/packages/sample/genaisrc/mdtranslator.genai.mts).
80+
C'est parti ! Si vous souhaitez consulter le code, [voici le script](https://github.com/microsoft/genaiscript/blob/dev/samples/sample/genaisrc/mdtranslator.genai.mts).
8181

8282
## Traductions Markdown Itératives
8383

docs/src/content/docs/reference/scripts/system.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export default function (ctx: ChatGenerationContext) {
206206

207207
const docsRoot = env.vars["system.agent_docs.dir"] || "docs"
208208
const samplesRoot =
209-
env.vars["system.agent_docs.samples"] || "packages/sample/genaisrc/"
209+
env.vars["system.agent_docs.samples"] || "samples/sample/genaisrc/"
210210

211211
defAgent(
212212
"docs",

0 commit comments

Comments
 (0)