Files
letta-server/.github/workflows/rdme-openapi.yml
2024-01-15 23:04:40 -08:00

53 lines
1.6 KiB
YAML

# This GitHub Actions workflow was auto-generated by the `rdme` cli on 2023-12-19T05:58:13.568Z
# You can view our full documentation here: https://docs.readme.com/docs/rdme
name: ReadMe GitHub Action (OpenAPI) 🦉
on:
push:
branches:
# This workflow will run every time you push code to the following branch: `main`
# Check out GitHub's docs for more info on configuring this:
# https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
- main
jobs:
rdme-openapi:
runs-on: ubuntu-latest
steps:
- name: Check out repo 📚
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install poetry
run: pip install poetry
- name: Set Poetry config
run: |
poetry config virtualenvs.in-project false
poetry config virtualenvs.path ~/.virtualenvs
- name: Install dependencies using Poetry
run: |
poetry install --all-extras
- name: Set Poetry config
run: |
poetry config virtualenvs.in-project false
poetry config virtualenvs.path ~/.virtualenvs
- name: Generate openapi.json file
run: |
poetry run memgpt server &
CMD_PID=$!
sleep 5 # Wait for 5 seconds
kill -SIGINT $CMD_PID
- name: Run `openapi` command 🚀
uses: readmeio/rdme@v8
with:
rdme: openapi openapi.json --key=${{ secrets.README_API_KEY }} --id=6581305097523b004eedfd16