Skip to content

Commit b31f4d4

Browse files
chore(internal): run example files in CI (#2160)
1 parent 65f2c5c commit b31f4d4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

+27
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,30 @@ jobs:
5151

5252
- name: Run tests
5353
run: ./scripts/test
54+
55+
examples:
56+
name: examples
57+
runs-on: ubuntu-latest
58+
59+
steps:
60+
- uses: actions/checkout@v4
61+
62+
- name: Install Rye
63+
run: |
64+
curl -sSf https://rye.astral.sh/get | bash
65+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
66+
env:
67+
RYE_VERSION: '0.35.0'
68+
RYE_INSTALL_OPTION: '--yes'
69+
- name: Install dependencies
70+
run: |
71+
rye sync --all-features
72+
73+
- env:
74+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
75+
run: |
76+
rye run python examples/demo.py
77+
- env:
78+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
79+
run: |
80+
rye run python examples/async_demo.py

0 commit comments

Comments
 (0)