Spaces:
Sleeping
Sleeping
Add a GitHub Action to update HF. Improve Dockerfile in small ways.
Browse files
.github/workflows/release-lynxkite-app.yaml
DELETED
|
@@ -1,18 +0,0 @@
|
|
| 1 |
-
name: release-lynxkite-app
|
| 2 |
-
on:
|
| 3 |
-
workflow_dispatch:
|
| 4 |
-
jobs:
|
| 5 |
-
publish:
|
| 6 |
-
runs-on: ubuntu-latest
|
| 7 |
-
permissions:
|
| 8 |
-
id-token: write
|
| 9 |
-
steps:
|
| 10 |
-
- uses: actions/checkout@v4
|
| 11 |
-
- name: Install uv
|
| 12 |
-
uses: astral-sh/setup-uv@v5
|
| 13 |
-
- name: Build
|
| 14 |
-
working-directory: lynxkite-app
|
| 15 |
-
run: uv build
|
| 16 |
-
- name: Publish
|
| 17 |
-
working-directory: lynxkite-app
|
| 18 |
-
run: uv publish
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/release-lynxkite-core.yaml
DELETED
|
@@ -1,18 +0,0 @@
|
|
| 1 |
-
name: release-lynxkite-core
|
| 2 |
-
on:
|
| 3 |
-
workflow_dispatch:
|
| 4 |
-
jobs:
|
| 5 |
-
publish:
|
| 6 |
-
runs-on: ubuntu-latest
|
| 7 |
-
permissions:
|
| 8 |
-
id-token: write
|
| 9 |
-
steps:
|
| 10 |
-
- uses: actions/checkout@v4
|
| 11 |
-
- name: Install uv
|
| 12 |
-
uses: astral-sh/setup-uv@v5
|
| 13 |
-
- name: Build
|
| 14 |
-
working-directory: lynxkite-core
|
| 15 |
-
run: uv build
|
| 16 |
-
- name: Publish
|
| 17 |
-
working-directory: lynxkite-core
|
| 18 |
-
run: uv publish
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/release-lynxkite-graph-analytics.yaml
DELETED
|
@@ -1,18 +0,0 @@
|
|
| 1 |
-
name: release-lynxkite-graph-analytics
|
| 2 |
-
on:
|
| 3 |
-
workflow_dispatch:
|
| 4 |
-
jobs:
|
| 5 |
-
publish:
|
| 6 |
-
runs-on: ubuntu-latest
|
| 7 |
-
permissions:
|
| 8 |
-
id-token: write
|
| 9 |
-
steps:
|
| 10 |
-
- uses: actions/checkout@v4
|
| 11 |
-
- name: Install uv
|
| 12 |
-
uses: astral-sh/setup-uv@v5
|
| 13 |
-
- name: Build
|
| 14 |
-
working-directory: lynxkite-graph-analytics
|
| 15 |
-
run: uv build
|
| 16 |
-
- name: Publish
|
| 17 |
-
working-directory: lynxkite-graph-analytics
|
| 18 |
-
run: uv publish
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/test.yaml
CHANGED
|
@@ -34,11 +34,3 @@ jobs:
|
|
| 34 |
- name: Run Python unittests
|
| 35 |
run: |
|
| 36 |
pytest
|
| 37 |
-
|
| 38 |
-
- uses: actions/upload-artifact@v4
|
| 39 |
-
name: Upload playwright report
|
| 40 |
-
if: ${{ !cancelled() }}
|
| 41 |
-
with:
|
| 42 |
-
name: playwright-report
|
| 43 |
-
path: lynxkite-app/web/playwright-report/
|
| 44 |
-
retention-days: 30
|
|
|
|
| 34 |
- name: Run Python unittests
|
| 35 |
run: |
|
| 36 |
pytest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/update-hugging-face.yaml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Update LynxKite demo on Hugging Face Spaces
|
| 2 |
+
on:
|
| 3 |
+
# push:
|
| 4 |
+
# branches: [main]
|
| 5 |
+
workflow_dispatch:
|
| 6 |
+
|
| 7 |
+
jobs:
|
| 8 |
+
sync-to-hub:
|
| 9 |
+
runs-on: ubuntu-latest
|
| 10 |
+
steps:
|
| 11 |
+
- uses: actions/checkout@v3
|
| 12 |
+
with:
|
| 13 |
+
fetch-depth: 0
|
| 14 |
+
- name: Push to hub
|
| 15 |
+
env:
|
| 16 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 17 |
+
run: git push https://lynx-analytics:$HF_TOKEN@huggingface.co/spaces/lynx-analytics/lynxkite main
|
Dockerfile
CHANGED
|
@@ -1,10 +1,16 @@
|
|
| 1 |
FROM node:22
|
| 2 |
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
| 3 |
-
RUN apt-get update && apt-get install -y git
|
| 4 |
USER node
|
| 5 |
ENV HOME=/home/node PATH=/home/node/.local/bin:$PATH
|
| 6 |
WORKDIR $HOME/app
|
| 7 |
-
COPY --chown=node
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
ENV GIT_SSH_COMMAND="ssh -i /run/secrets/LYNXSCRIBE_DEPLOY_KEY -o StrictHostKeyChecking=no"
|
| 9 |
RUN --mount=type=secret,id=LYNXSCRIBE_DEPLOY_KEY,mode=0444,required=true \
|
| 10 |
uv venv && uv sync
|
|
|
|
| 1 |
FROM node:22
|
| 2 |
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
| 3 |
+
RUN apt-get update && apt-get install -y git rsync
|
| 4 |
USER node
|
| 5 |
ENV HOME=/home/node PATH=/home/node/.local/bin:$PATH
|
| 6 |
WORKDIR $HOME/app
|
| 7 |
+
COPY --chown=node lynxkite-bio ./lynxkite-bio
|
| 8 |
+
COPY --chown=node lynxkite-llm-training ./lynxkite-llm-training
|
| 9 |
+
COPY --chown=node lynxkite-lynxscribe ./lynxkite-lynxscribe
|
| 10 |
+
COPY --chown=node pyproject.toml uv.lock .python-version ./
|
| 11 |
+
COPY --chown=node examples ./examples
|
| 12 |
+
RUN git clone --depth 1 https://github.com/lynxkite/lynxkite-2000.git
|
| 13 |
+
RUN rsync --ignore-existing lynxkite-2000/examples/ ./examples/
|
| 14 |
ENV GIT_SSH_COMMAND="ssh -i /run/secrets/LYNXSCRIBE_DEPLOY_KEY -o StrictHostKeyChecking=no"
|
| 15 |
RUN --mount=type=secret,id=LYNXSCRIBE_DEPLOY_KEY,mode=0444,required=true \
|
| 16 |
uv venv && uv sync
|