Adapter the openai 1.x version #1150
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build dev package | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
paths: | |
- 'examples/**' | |
- 'gptcache/**' | |
- 'tests/**' | |
- '!**.md' | |
- '.github/workflows/**' | |
pull_request: | |
branches: | |
- main | |
- dev | |
paths: | |
- 'examples/**' | |
- 'gptcache/**' | |
- 'tests/**' | |
- '!**.md' | |
- '.github/workflows/**' | |
workflow_dispatch: | |
jobs: | |
build-pypi: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
# - name: Get history and tags for SCM versioning | |
# run: | | |
# git fetch --prune --unshallow | |
# git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
- name: Install pypa/build | |
run: >- | |
python -m | |
pip install | |
build | |
--user | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
python -m | |
build | |
--sdist | |
--wheel | |
--outdir dist/ | |
. | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: | | |
dist | |
!dist/**/*.md |