openai/openai-python
Publicmirrored from https://github.com/openai/openai-pythonAvailable
.github/workflows/ci.yml
52lines · modeblame
08b8179aDavid Schnurr2 years ago | 1 | name: CI |
| 2 | on: | |
| 3 | push: | |
| 4 | branches: | |
| 5 | - main | |
| 6 | pull_request: | |
| 7 | branches: | |
| 8 | - main | |
| 9 | | |
| 10 | jobs: | |
| 11 | lint: | |
| 12 | name: lint | |
| 13 | runs-on: ubuntu-latest | |
| 14 | if: github.repository == 'openai/openai-python' | |
| 15 | | |
| 16 | steps: | |
f0b18239Stainless Bot2 years ago | 17 | - uses: actions/checkout@v4 |
08b8179aDavid Schnurr2 years ago | 18 | |
| 19 | - name: Install Rye | |
| 20 | run: | | |
001965beStainless Bot2 years ago | 21 | curl -sSf https://rye.astral.sh/get | bash |
08b8179aDavid Schnurr2 years ago | 22 | echo "$HOME/.rye/shims" >> $GITHUB_PATH |
| 23 | env: | |
94fc49d8stainless-app[bot]1 years ago | 24 | RYE_VERSION: '0.35.0' |
b36b8d86Stainless Bot2 years ago | 25 | RYE_INSTALL_OPTION: '--yes' |
08b8179aDavid Schnurr2 years ago | 26 | |
| 27 | - name: Install dependencies | |
526a05ebStainless Bot2 years ago | 28 | run: rye sync --all-features |
08b8179aDavid Schnurr2 years ago | 29 | |
526a05ebStainless Bot2 years ago | 30 | - name: Run lints |
| 31 | run: ./scripts/lint | |
d2738d42Stainless Bot2 years ago | 32 | test: |
| 33 | name: test | |
| 34 | runs-on: ubuntu-latest | |
| 35 | if: github.repository == 'openai/openai-python' | |
| 36 | | |
| 37 | steps: | |
| 38 | - uses: actions/checkout@v4 | |
| 39 | | |
| 40 | - name: Install Rye | |
| 41 | run: | | |
001965beStainless Bot2 years ago | 42 | curl -sSf https://rye.astral.sh/get | bash |
d2738d42Stainless Bot2 years ago | 43 | echo "$HOME/.rye/shims" >> $GITHUB_PATH |
| 44 | env: | |
94fc49d8stainless-app[bot]1 years ago | 45 | RYE_VERSION: '0.35.0' |
d2738d42Stainless Bot2 years ago | 46 | RYE_INSTALL_OPTION: '--yes' |
| 47 | | |
| 48 | - name: Bootstrap | |
| 49 | run: ./scripts/bootstrap | |
| 50 | | |
| 51 | - name: Run tests | |
| 52 | run: ./scripts/test |