openai/openai-python

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
ae65e6ff6ffdae3abaf8ee45cdc59f8f0d6ae230

Branches

Tags

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

Clone

HTTPS

Download ZIP

.github/workflows/ci.yml

54lines · modecode

1name: CI
2on:
3 push:
4 branches:
5 - main
6 pull_request:
7 branches:
8 - main
9 - next
10
11jobs:
12 lint:
13 name: lint
14 runs-on: ubuntu-latest
15 if: github.repository == 'openai/openai-python'
16
17 steps:
18 - uses: actions/checkout@v4
19
20 - name: Install Rye
21 run: |
22 curl -sSf https://rye.astral.sh/get | bash
23 echo "$HOME/.rye/shims" >> $GITHUB_PATH
24 env:
25 RYE_VERSION: '0.35.0'
26 RYE_INSTALL_OPTION: '--yes'
27
28 - name: Install dependencies
29 run: rye sync --all-features
30
31 - name: Run lints
32 run: ./scripts/lint
33 test:
34 name: test
35 runs-on: ubuntu-latest
36 if: github.repository == 'openai/openai-python'
37
38 steps:
39 - uses: actions/checkout@v4
40
41 - name: Install Rye
42 run: |
43 curl -sSf https://rye.astral.sh/get | bash
44 echo "$HOME/.rye/shims" >> $GITHUB_PATH
45 env:
46 RYE_VERSION: '0.35.0'
47 RYE_INSTALL_OPTION: '--yes'
48
49 - name: Bootstrap
50 run: ./scripts/bootstrap
51
52 - name: Run tests
53 run: ./scripts/test