Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

chore: move more gh actions to uv (#3487)

Myles Scolnick75cc0934ae40
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 04b917acee..fc07df77e0 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -17,11 +17,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- - name: 🐍 Set up Python
- uses: actions/setup-python@v5
+ - name: 🐍 Setup uv
+ uses: astral-sh/setup-uv@v5
with:
+ enable-cache: true
python-version: 3.12
- cache: 'pip'
- name: ⚡ Install Vercel CLI
run: npm install --global vercel@latest
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
index 9d2359ebbc..12ce588918 100644
--- a/.github/workflows/pages.yml
+++ b/.github/workflows/pages.yml
@@ -24,21 +24,15 @@ jobs:
with:
fetch-depth: 0
- - name: 🚀 Install uv
- uses: astral-sh/setup-uv@v4
-
- - name: 🐍 Set up Python
- uses: actions/setup-python@v5
+ - name: 🐍 Setup uv
+ uses: astral-sh/setup-uv@v5
with:
+ enable-cache: true
python-version: 3.12
- - name: 📦 Install marimo
- run: |
- uv pip install marimo
-
- name: 🛠️ Run export
run: |
- marimo export html-wasm frontend/public/files/wasm-intro.py -o out --mode run
+ uvx marimo export html-wasm frontend/public/files/wasm-intro.py -o out --mode run
sed -i -e "s/after_delay/off/g" out/index.html
- name: 📄 List changed files
diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml
index 19121c9656..0a79826d6e 100644
--- a/.github/workflows/playwright.yml
+++ b/.github/workflows/playwright.yml
@@ -30,7 +30,7 @@ jobs:
test:
needs: changes
if: ${{ needs.changes.outputs.playwright == 'true' }}
- timeout-minutes: 13 # 2024-01-18 avg: 5.0m max: 7.0m
+ timeout-minutes: 13 # 2024-01-18 avg: 5.0m max: 7.0m
runs-on: ubuntu-latest
defaults:
run:
@@ -65,23 +65,15 @@ jobs:
- name: 📦 Build frontend
run: make fe
- - name: 🐍 Setup Python 3.12
- uses: actions/setup-python@v5
+ - name: 🐍 Setup uv
+ uses: astral-sh/setup-uv@v5
with:
- python-version: '3.12'
- cache: 'pip'
-
- # We tried to add uv, but marimo is unable to
- # start when installed.
- # - name: 🐍 Setup uv
- # uses: yezz123/setup-uv@v4
- # with:
- # uv-venv: marimo-venv
+ enable-cache: true
+ python-version: 3.12
- name: 🐍 Install marimo
run: |
- python -m pip install --upgrade pip
- pip install .
+ uv pip install .
echo "MARIMO_VERSION=$(marimo --version)" >> $GITHUB_ENV
- name: 🎭 Get installed Playwright version