Skip to content

Commit 1e4467a

Browse files
authored
Merge branch 'master' into add-triggered-by-user
2 parents ceb9090 + b32894e commit 1e4467a

File tree

4 files changed

+1408
-1739
lines changed

4 files changed

+1408
-1739
lines changed

.github/workflows/full-stack-test.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test Metaflow with complete Kubernetes stack
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Check out source
17+
uses: actions/checkout@v4
18+
19+
- name: Install Metaflow
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install . kubernetes
23+
24+
25+
- name: Bring up the environment
26+
run: |
27+
echo "Starting environment in the background..."
28+
MINIKUBE_CPUS=2 metaflow-dev all-up &
29+
# Give time to spin up. Adjust as needed:
30+
sleep 150
31+
32+
- name: Wait & run flow
33+
run: |
34+
# When the environment is up, metaflow-dev shell will wait for readiness
35+
# and then drop into a shell. We feed commands via a heredoc:
36+
cat <<EOF | metaflow-dev shell
37+
echo "Environment is ready; running flow now..."
38+
python metaflow/tutorials/00-helloworld/helloworld.py run --with kubernetes
39+
EOF
40+
41+
- name: Tear down environment
42+
run: |
43+
metaflow-dev down

.github/workflows/test-card-build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Test Card UI builds
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
paths:
8+
- 'metaflow/plugins/cards/ui/**'
9+
10+
jobs:
11+
testbuild:
12+
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
working-directory: ./metaflow/plugins/cards/ui
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Use Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '20.x'
22+
- run: npm ci
23+
- run: npm run build

metaflow/plugins/cards/card_modules/main.js

Lines changed: 52 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)