openai/openai-python

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.25.1

Branches

Tags

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

Clone

HTTPS

Download ZIP

.github/workflows/ci.yml

63lines · 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: |
21curl -sSf https://rye-up.com/get | bash
22echo "$HOME/.rye/shims" >> $GITHUB_PATH
23env:
998e1887Stainless Bot2 years ago24RYE_VERSION: 0.24.0
b36b8d86Stainless Bot2 years ago25RYE_INSTALL_OPTION: '--yes'
08b8179aDavid Schnurr2 years ago26
27- name: Install dependencies
28run: |
29rye sync --all-features
30
31- name: Run ruff
32run: |
33rye run check:ruff
34
35- name: Run type checking
36run: |
37rye run typecheck
38
39- name: Ensure importable
40run: |
41rye run python -c 'import openai'
d2738d42Stainless Bot2 years ago42test:
43name: test
44runs-on: ubuntu-latest
45if: github.repository == 'openai/openai-python'
46
47steps:
48- uses: actions/checkout@v4
49
50- name: Install Rye
51run: |
52curl -sSf https://rye-up.com/get | bash
53echo "$HOME/.rye/shims" >> $GITHUB_PATH
54env:
55RYE_VERSION: 0.24.0
56RYE_INSTALL_OPTION: '--yes'
57
58- name: Bootstrap
59run: ./scripts/bootstrap
60
61- name: Run tests
62run: ./scripts/test
b36b8d86Stainless Bot2 years ago63