Sitelet https://github.com/NodeOps-app/createos-sandbox-sdk/commit/3f6deff7bac9a7450d698b57f35f9cc5d1ee07c5
Skip to content

Commit 3f6deff

Browse files
committed
ci: install distro python for example 20
Replace actions/setup-python with installing the distribution python via apt. The prebuilt binaries do not match the microVM runner OS, causing version lookup failures. Example 20 only requires python3 and venv on PATH, so the distro packages are installed instead.
1 parent 162916c commit 3f6deff

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎.github/workflows/examples.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,14 @@ jobs:
164164
working-directory: examples
165165
run: bun install
166166

167-
# example 20 needs python3-venv; only that job pays for the setup.
167+
# example 20 needs python3 + venv on PATH; only that job pays for the setup.
168+
# setup-python's prebuilt binaries don't match the microVM runner OS, so
169+
# install the distro python instead.
168170
- name: Set up Python (example 20)
169171
if: startsWith(matrix.example, '20-')
170-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
171-
with:
172-
python-version: "3.12"
172+
run: |
173+
sudo apt-get update
174+
sudo apt-get install -y python3 python3-venv python3-pip
173175
174176
# example 38 mounts an S3 bucket; play.min.io purges buckets periodically.
175177
- name: Ensure S3 bucket (example 38)

0 commit comments

Comments
 (0)