migrate to core only
This commit is contained in:
24
.github/workflows/fern-sdk-python-preview.yml
vendored
24
.github/workflows/fern-sdk-python-preview.yml
vendored
@@ -12,8 +12,8 @@ on:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'apps/fern/openapi.json'
|
||||
- 'apps/fern/openapi-overrides.yml'
|
||||
- 'fern/openapi.json'
|
||||
- 'fern/openapi-overrides.yml'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
@@ -38,8 +38,8 @@ jobs:
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
files: |
|
||||
apps/fern/openapi.json
|
||||
apps/fern/openapi-overrides.yml
|
||||
fern/openapi.json
|
||||
fern/openapi-overrides.yml
|
||||
|
||||
preview-python-sdk:
|
||||
needs: [changed-files]
|
||||
@@ -73,18 +73,18 @@ jobs:
|
||||
- name: Generate cache key
|
||||
id: cache-key
|
||||
run: |
|
||||
echo "key=sdk-${{ github.ref_name }}-${{ hashFiles('apps/fern/*', 'apps/core/pyproject.toml') }}" >> $GITHUB_OUTPUT
|
||||
echo "key=sdk-${{ github.ref_name }}-${{ hashFiles('fern/*', 'pyproject.toml') }}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Try to restore SDK cache
|
||||
id: restore-cache
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: |
|
||||
apps/fern/.preview/fern-python-sdk/
|
||||
fern/.preview/fern-python-sdk/
|
||||
key: ${{ steps.cache-key.outputs.key }}
|
||||
|
||||
- name: Inject env vars into environment
|
||||
working-directory: apps/core
|
||||
working-directory: .
|
||||
run: |
|
||||
while IFS= read -r line || [[ -n "$line" ]]; do
|
||||
if [[ -n "$line" ]]; then
|
||||
@@ -114,11 +114,11 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
working-directory: apps/core
|
||||
working-directory: .
|
||||
run: uv sync --no-install-project ${{ inputs.install-args || '--extra postgres --extra external-tools --extra dev --extra cloud-tool-sandbox' }}
|
||||
|
||||
- name: Migrate database
|
||||
working-directory: apps/core
|
||||
working-directory: .
|
||||
env:
|
||||
LETTA_PG_PORT: 5432
|
||||
LETTA_PG_USER: postgres
|
||||
@@ -130,7 +130,7 @@ jobs:
|
||||
uv run alembic upgrade head
|
||||
|
||||
- name: Run letta server
|
||||
working-directory: apps/core
|
||||
working-directory: .
|
||||
env:
|
||||
LETTA_PG_DB: postgres
|
||||
LETTA_PG_USER: postgres
|
||||
@@ -147,7 +147,7 @@ jobs:
|
||||
|
||||
- name: Generate Python SDK Preview
|
||||
if: steps.restore-cache.outputs.cache-hit != 'true'
|
||||
working-directory: apps
|
||||
working-directory: .
|
||||
env:
|
||||
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
|
||||
run: |
|
||||
@@ -164,5 +164,5 @@ jobs:
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
apps/fern/.preview/fern-python-sdk/
|
||||
fern/.preview/fern-python-sdk/
|
||||
key: ${{ steps.cache-key.outputs.key }}
|
||||
|
||||
Reference in New Issue
Block a user