Skip to content

Merge pull request #154 from bioimage-io/revert-153-extension-info #287

Merge pull request #154 from bioimage-io/revert-153-extension-info

Merge pull request #154 from bioimage-io/revert-153-extension-info #287

Workflow file for this run

on:
push:
branches:
- main
name: Build
permissions:
contents: read
jobs:
build:
permissions:
contents: write # for Git to git push
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: 3.9
conda-channels: anaconda, conda-forge
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Trigger workflow at bioimage.io
uses: benc-uk/workflow-dispatch@v1
with:
workflow: build-site.yml
repo: bioimage-io/bioimage.io
inputs: '{}'
# Required when using the `repo` option. Either a PAT or a token generated from the GitHub app or CLI
token: "${{ secrets.PAT_TOKEN_WORKFLOW }}"
- name: Run Init
run: python -m bioimageio_chatbot init
- name: Test server
env:
OPENAI_API_KEY: sk-xxxxxxxx
run: python -m bioimageio_chatbot start-server --host=0.0.0.0 --port=9000 & wget http://127.0.0.1:9000/
# - name: Build vector database
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# run: |
# python -m bioimageio_chatbot create-knowledge-base --output-dir=./dist/bioimageio-knowledge-base
# env:
# OPENAI_API_KEY: ${{ secrets.OPENAI_SECRET_API_KEY }}
# - name: Deploy
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./dist