Skip to content

Commit 9255cbc

Browse files
committed
update github workflows
1 parent 200303f commit 9255cbc

File tree

3 files changed

+28
-25
lines changed

3 files changed

+28
-25
lines changed

.github/workflows/check-generated-files.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,33 @@ jobs:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
1616

17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '22'
21+
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: 10.13.1
26+
1727
- name: Regenerate files.json
18-
working-directory: typescript-sdk/apps/dojo
19-
run: npm run generate-content-json
28+
working-directory: apps/dojo
29+
run: pnpm generate-content-json
2030

2131
- name: Check files.json
22-
working-directory: typescript-sdk/apps/dojo
32+
working-directory: apps/dojo
2333
run: |
2434
if git diff --exit-code src/files.json > /dev/null; then
2535
echo "✅ No changes detected in dojo/src/files.json. Everything is up to date."
2636
else
2737
echo "❌ Detected changes in dojo/src/files.json."
2838
echo ""
29-
echo "Please run \`(p)npm run generate-content-json\` in the typescript-sdk/apps/dojo folder and commit the changes."
39+
echo "Please run \`(p)npm run generate-content-json\` in the apps/dojo folder and commit the changes."
3040
echo ""
3141
echo "The detected diff was as follows:"
3242
echo "::group::Diff for dojo/src/files.json"
3343
git diff src/files.json
3444
echo "::endgroup::"
3545
exit 1
3646
fi
37-
38-

.github/workflows/dojo-e2e.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -127,32 +127,29 @@ jobs:
127127
uses: astral-sh/setup-uv@v6
128128

129129
- name: Install dependencies
130-
working-directory: typescript-sdk
131130
run: pnpm install --frozen-lockfile
132131

133132
- name: Prepare dojo for e2e
134-
working-directory: typescript-sdk/apps/dojo
133+
working-directory: apps/dojo
135134
if: ${{ join(matrix.services, ',') != '' }}
136135
run: node ./scripts/prep-dojo-everything.js --only ${{ join(matrix.services, ',') }}
137136

138137
- name: Install e2e dependencies
139-
working-directory: typescript-sdk/apps/dojo/e2e
138+
working-directory: apps/dojo/e2e
140139
run: |
141140
pnpm install
142141
143142
- name: write langgraph env files
144-
working-directory: typescript-sdk/integrations/langgraph
143+
working-directory: integrations/langgraph
145144
env:
146145
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
147146
LANGSMITH_API_KEY: ${{ secrets.LANGSMITH_API_KEY }}
148147
if: ${{ contains(join(matrix.services, ','), 'langgraph-fastapi') || contains(join(matrix.services, ','), 'langgraph-platform-python') || contains(join(matrix.services, ','), 'langgraph-platform-typescript') }}
149148
run: |
150-
echo "OPENAI_API_KEY=${OPENAI_API_KEY}" > examples/python/.env
151-
echo "LANGSMITH_API_KEY=${LANGSMITH_API_KEY}" >> examples/python/.env
152-
echo "OPENAI_API_KEY=${OPENAI_API_KEY}" > examples/typescript/.env
153-
echo "LANGSMITH_API_KEY=${LANGSMITH_API_KEY}" >> examples/typescript/.env
154-
echo "OPENAI_API_KEY=${OPENAI_API_KEY}" > python/ag_ui_langgraph/.env
155-
echo "LANGSMITH_API_KEY=${LANGSMITH_API_KEY}" >> python/ag_ui_langgraph/.env
149+
echo "OPENAI_API_KEY=${OPENAI_API_KEY}" > python/examples/.env
150+
echo "LANGSMITH_API_KEY=${LANGSMITH_API_KEY}" >> python/examples/.env
151+
echo "OPENAI_API_KEY=${OPENAI_API_KEY}" > typescript/examples/.env
152+
echo "LANGSMITH_API_KEY=${LANGSMITH_API_KEY}" >> typescript/examples/.env
156153
157154
- name: Run dojo+agents
158155
uses: JarvusInnovations/background-action@v1
@@ -164,12 +161,12 @@ jobs:
164161
with:
165162
run: |
166163
node ../scripts/run-dojo-everything.js --only ${{ join(matrix.services, ',') }}
167-
working-directory: typescript-sdk/apps/dojo/e2e
164+
working-directory: apps/dojo/e2e
168165
wait-on: ${{ matrix.wait_on }}
169166
wait-for: 300000
170167

171168
- name: Run tests – ${{ matrix.suite }}
172-
working-directory: typescript-sdk/apps/dojo/e2e
169+
working-directory: apps/dojo/e2e
173170
env:
174171
BASE_URL: http://localhost:9999
175172
PLAYWRIGHT_SUITE: ${{ matrix.suite }}
@@ -182,6 +179,6 @@ jobs:
182179
with:
183180
name: ${{ matrix.suite }}-playwright-traces
184181
path: |
185-
typescript-sdk/apps/dojo/e2e/test-results/${{ matrix.suite }}/**/*
186-
typescript-sdk/apps/dojo/e2e/playwright-report/**/*
182+
apps/dojo/e2e/test-results/${{ matrix.suite }}/**/*
183+
apps/dojo/e2e/playwright-report/**/*
187184
retention-days: 7

.github/workflows/test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ jobs:
3636

3737
- name: Install dependencies
3838
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
39-
working-directory: python-sdk
39+
working-directory: sdks/python
4040
run: poetry install --no-interaction --no-root
4141

4242
- name: Install project
43-
working-directory: python-sdk
43+
working-directory: sdks/python
4444
run: poetry install --no-interaction
4545

4646
- name: Run tests
47-
working-directory: python-sdk
47+
working-directory: sdks/python
4848
run: poetry run python -m unittest discover tests -v
4949

5050
typescript:
@@ -80,15 +80,13 @@ jobs:
8080
${{ runner.os }}-pnpm-store-
8181
8282
- name: Install dependencies
83-
working-directory: typescript-sdk
8483
run: pnpm install --frozen-lockfile
8584

8685
- name: Test Build
8786
working-directory: typescript-sdk
8887
run: pnpm run build
8988

9089
- name: Run tests
91-
working-directory: typescript-sdk
9290
run: pnpm run test
9391

9492
go:

0 commit comments

Comments
 (0)