-
Notifications
You must be signed in to change notification settings - Fork 1.3k
49 lines (41 loc) · 1.25 KB
/
full-stack-test.yml
File metadata and controls
49 lines (41 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Test Metaflow with complete Kubernetes stack
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out source
uses: actions/checkout@v6
- name: Install Metaflow
run: |
python -m pip install --upgrade pip
pip install . kubernetes
- name: Bring up the environment
run: |
echo "Starting environment in the background..."
metaflow-dev all-up &
WAIT_TIMEOUT=900 metaflow-dev wait-until-ready
- name: Wait & run flow
run: |
cat <<EOF | metaflow-dev shell
echo "Environment is ready; running flow now..."
python metaflow/tutorials/00-helloworld/helloworld.py --environment=pypi run --with kubernetes --with card
EOF
- name: Dump tilt state on failure
if: failure()
run: |
echo "=== Tilt resource status ==="
tilt get uiresources -o wide 2>/dev/null || true
echo "=== Recent tilt logs (last 50 lines) ==="
tail -50 /tmp/tilt.log 2>/dev/null || true
- name: Tear down environment
if: always()
run: |
metaflow-dev down