Skip to content

Commit

Permalink
Added workflow for Streamlit
Browse files Browse the repository at this point in the history
  • Loading branch information
andeplane committed Jun 10, 2024
1 parent 3634a35 commit a01fbcd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/verify-jupyter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
node-version: "20"
- name: Install dependencies
run: npm install [email protected]
run: npm install [email protected] # JupyterLite currently using pyodide 0.25.1
- name: Install cognite-sdk in pyodide environment
run: |
whl_file=$(find dist -name "*.whl" | sed 's|^dist/||') # Find the built wheel file, remove dist/ prefix
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/verify-streamlit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: build

on:
pull_request:
branches: [master]

jobs:
build_and_test_jupyter_pyodide:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Build package
run: poetry build
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install dependencies
run: npm install [email protected] # stlite currently using pyodide 0.25.1
- name: Install cognite-sdk in pyodide environment
run: |
whl_file=$(find dist -name "*.whl" | sed 's|^dist/||') # Find the built wheel file, remove dist/ prefix
echo "Found built wheel file: $whl_file"
SDK_FILE_PATH=$whl_file \
PACKAGES="[\"pyodide-http\", \"http://localhost:3000/dist/$whl_file\"]" \
node scripts/test-pyodide.js

0 comments on commit a01fbcd

Please sign in to comment.