Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

ci: run npm wrapper on avibe runner (#481)

Call Whitef8cc24539d23
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index d2f419635..c1ccf2867 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -10,6 +10,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+env:
+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
+
jobs:
ruff:
runs-on: ubuntu-latest
@@ -18,19 +21,17 @@ jobs:
- uses: actions/setup-python@v6
with:
python-version: '3.12'
+ cache: "pip"
+ cache-dependency-path: |
+ pyproject.toml
+ uv.lock
- name: Run pre-commit (ruff)
run: |
pip install pre-commit
pre-commit run --all-files
- unit-test-shards:
- name: unit-tests (${{ matrix.shard }}/${{ matrix.shard-total }})
+ build-linux-artifacts:
runs-on: ubuntu-latest
- strategy:
- fail-fast: false
- matrix:
- shard: [0, 1, 2, 3]
- shard-total: [4]
steps:
- uses: actions/checkout@v5
@@ -40,17 +41,66 @@ jobs:
cache: "npm"
cache-dependency-path: ui/package-lock.json
- # hatchling force-includes ui/dist into the (editable) install, so it must
- # exist before `pip install -e .`.
- name: Build UI assets
working-directory: ui
run: |
npm ci
+ npm run validate:theme
npm run build
- uses: actions/setup-python@v6
with:
python-version: "3.12"
+ cache: "pip"
+ cache-dependency-path: |
+ pyproject.toml
+ uv.lock
+
+ - name: Build package artifact
+ run: |
+ pip install build
+ python -m build --wheel
+
+ - uses: actions/upload-artifact@v5
+ with:
+ name: ui-dist-linux
+ path: ui/dist
+ if-no-files-found: error
+ retention-days: 1
+
+ - uses: actions/upload-artifact@v5
+ with:
+ name: vibe-wheel-linux
+ path: dist/*.whl
+ if-no-files-found: error
+ retention-days: 1
+
+ unit-test-shards:
+ name: unit-tests (${{ matrix.shard }}/${{ matrix.shard-total }})
+ runs-on: ubuntu-latest
+ needs: build-linux-artifacts
+ strategy:
+ fail-fast: false
+ matrix:
+ shard: [0, 1, 2, 3]
+ shard-total: [4]
+ steps:
+ - uses: actions/checkout@v5
+
+ # hatchling force-includes ui/dist into the (editable) install, so it must
+ # exist before `pip install -e .`.
+ - uses: actions/download-artifact@v5
+ with:
+ name: ui-dist-linux
+ path: ui/dist
+
+ - uses: actions/setup-python@v6
+ with:
+ python-version: "3.12"
+ cache: "pip"
+ cache-dependency-path: |
+ pyproject.toml
+ uv.lock
- name: Install package and test deps
run: pip install -e . pytest
@@ -72,7 +122,7 @@ jobs:
echo "All unit test shards passed."
npm-wrapper:
- runs-on: ubuntu-latest
+ runs-on: [self-hosted, Linux, X64, avibe]
steps:
- uses: actions/checkout@v5
@@ -90,32 +140,31 @@ jobs:
install-upgrade-regression:
runs-on: ubuntu-latest
+ needs: build-linux-artifacts
steps:
- uses: actions/checkout@v5
- - uses: actions/setup-node@v5
+ - uses: actions/download-artifact@v5
with:
- node-version: "20"
- cache: "npm"
- cache-dependency-path: ui/package-lock.json
+ name: ui-dist-linux
+ path: ui/dist
- - name: Build UI assets
- working-directory: ui
- run: |
- npm ci
- npm run validate:theme
- npm run build
+ - uses: actions/download-artifact@v5
+ with:
+ name: vibe-wheel-linux
+ path: dist
- uses: actions/setup-python@v6
with:
python-version: "3.12"
+ cache: "pip"
+ cache-dependency-path: |
+ pyproject.toml
+ uv.lock
- - name: Install build and test dependencies
+ - name: Install package and test dependencies
run: |
- pip install -e . build pytest
-
- - name: Build package artifact
- run: python -m build
+ pip install dist/*.whl pytest
- name: Run install and upgrade regressions
run: |
@@ -130,31 +179,14 @@ jobs:
windows-install-smoke:
runs-on: windows-latest
+ needs: build-linux-artifacts
steps:
- uses: actions/checkout@v5
- - uses: actions/setup-node@v5
- with:
- node-version: "20"
- cache: "npm"
- cache-dependency-path: ui/package-lock.json
-
- - name: Build UI assets
- working-directory: ui
- run: |
- npm ci
- npm run validate:theme
- npm run build
-
- - uses: actions/setup-python@v6
+ - uses: actions/download-artifact@v5
with:
- python-version: "3.12"
-
- - name: Install build dependencies
- run: pip install build
-
- - name: Build package artifact
- run: python -m build
+ name: vibe-wheel-linux
+ path: dist
- name: Run Windows installer smoke test
shell: pwsh