Skip to content

Merge branch 'main' of https://github.com/CakeCrusher/openplugin #75

Merge branch 'main' of https://github.com/CakeCrusher/openplugin

Merge branch 'main' of https://github.com/CakeCrusher/openplugin #75

Workflow file for this run

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