Merge pull request #12 from CakeCrusher/feature/js-function-truncation #47
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: pypiCoreCI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Start ChatgptPluginTodo server | |
uses: CakeCrusher/[email protected] | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine | |
- name: Install wheel | |
run: | | |
pip install wheel | |
- name: Build and check package | |
run: | | |
cd pypi-core | |
python setup.py sdist bdist_wheel | |
twine check dist/* | |
- name: Create virtual environment | |
run: | | |
python -m venv venv | |
- name: Install package and pytest | |
run: | | |
source venv/bin/activate | |
pip install pypi-core/dist/*.whl | |
pip install pytest | |
- name: Run tests | |
run: | | |
source venv/bin/activate | |
python -m pytest pypi-core/tests/ --verbose |