openai/openai-python

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.66.5

Branches

Tags

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

Clone

HTTPS

Download ZIP

.github/workflows/ci.yml

78lines · 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
14
15steps:
f0b18239Stainless Bot2 years ago16- uses: actions/checkout@v4
08b8179aDavid Schnurr2 years ago17
18- name: Install Rye
19run: |
001965beStainless Bot2 years ago20curl -sSf https://rye.astral.sh/get | bash
08b8179aDavid Schnurr2 years ago21echo "$HOME/.rye/shims" >> $GITHUB_PATH
22env:
d664ff22stainless-app[bot]1 years ago23RYE_VERSION: '0.44.0'
b36b8d86Stainless Bot2 years ago24RYE_INSTALL_OPTION: '--yes'
08b8179aDavid Schnurr2 years ago25
26- name: Install dependencies
526a05ebStainless Bot2 years ago27run: rye sync --all-features
08b8179aDavid Schnurr2 years ago28
526a05ebStainless Bot2 years ago29- name: Run lints
30run: ./scripts/lint
27d0e67bstainless-app[bot]1 years ago31
d2738d42Stainless Bot2 years ago32test:
33name: test
34runs-on: ubuntu-latest
35
36steps:
37- uses: actions/checkout@v4
38
39- name: Install Rye
40run: |
001965beStainless Bot2 years ago41curl -sSf https://rye.astral.sh/get | bash
d2738d42Stainless Bot2 years ago42echo "$HOME/.rye/shims" >> $GITHUB_PATH
43env:
d664ff22stainless-app[bot]1 years ago44RYE_VERSION: '0.44.0'
d2738d42Stainless Bot2 years ago45RYE_INSTALL_OPTION: '--yes'
46
47- name: Bootstrap
48run: ./scripts/bootstrap
49
50- name: Run tests
51run: ./scripts/test
b31f4d4cstainless-app[bot]1 years ago52
53examples:
54name: examples
55runs-on: ubuntu-latest
56
57steps:
58- uses: actions/checkout@v4
59
60- name: Install Rye
61run: |
62curl -sSf https://rye.astral.sh/get | bash
63echo "$HOME/.rye/shims" >> $GITHUB_PATH
64env:
d664ff22stainless-app[bot]1 years ago65RYE_VERSION: '0.44.0'
b31f4d4cstainless-app[bot]1 years ago66RYE_INSTALL_OPTION: '--yes'
67- name: Install dependencies
68run: |
69rye sync --all-features
70
71- env:
72OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
73run: |
74rye run python examples/demo.py
75- env:
76OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
77run: |
78rye run python examples/async_demo.py