openai/openai-python

Public

mirrored from https://github.com/openai/openai-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.66.1

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/ci.yml

80lines · modeblame

08b8179aDavid Schnurr2 years ago1name: CI
2on:
3push:
4branches:
5- main
6pull_request:
7branches:
8- main
9
10jobs:
11lint:
12name: lint
13runs-on: ubuntu-latest
14if: github.repository == 'openai/openai-python'
15
16steps:
f0b18239Stainless Bot2 years ago17- uses: actions/checkout@v4
08b8179aDavid Schnurr2 years ago18
19- name: Install Rye
20run: |
001965beStainless Bot2 years ago21curl -sSf https://rye.astral.sh/get | bash
08b8179aDavid Schnurr2 years ago22echo "$HOME/.rye/shims" >> $GITHUB_PATH
23env:
94fc49d8stainless-app[bot]1 years ago24RYE_VERSION: '0.35.0'
b36b8d86Stainless Bot2 years ago25RYE_INSTALL_OPTION: '--yes'
08b8179aDavid Schnurr2 years ago26
27- name: Install dependencies
526a05ebStainless Bot2 years ago28run: rye sync --all-features
08b8179aDavid Schnurr2 years ago29
526a05ebStainless Bot2 years ago30- name: Run lints
31run: ./scripts/lint
27d0e67bstainless-app[bot]1 years ago32
d2738d42Stainless Bot2 years ago33test:
34name: test
35runs-on: ubuntu-latest
36if: github.repository == 'openai/openai-python'
37
38steps:
39- uses: actions/checkout@v4
40
41- name: Install Rye
42run: |
001965beStainless Bot2 years ago43curl -sSf https://rye.astral.sh/get | bash
d2738d42Stainless Bot2 years ago44echo "$HOME/.rye/shims" >> $GITHUB_PATH
45env:
94fc49d8stainless-app[bot]1 years ago46RYE_VERSION: '0.35.0'
d2738d42Stainless Bot2 years ago47RYE_INSTALL_OPTION: '--yes'
48
49- name: Bootstrap
50run: ./scripts/bootstrap
51
52- name: Run tests
53run: ./scripts/test
b31f4d4cstainless-app[bot]1 years ago54
55examples:
56name: examples
57runs-on: ubuntu-latest
58
59steps:
60- uses: actions/checkout@v4
61
62- name: Install Rye
63run: |
64curl -sSf https://rye.astral.sh/get | bash
65echo "$HOME/.rye/shims" >> $GITHUB_PATH
66env:
67RYE_VERSION: '0.35.0'
68RYE_INSTALL_OPTION: '--yes'
69- name: Install dependencies
70run: |
71rye sync --all-features
72
73- env:
74OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
75run: |
76rye run python examples/demo.py
77- env:
78OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
79run: |
80rye run python examples/async_demo.py