Skip to content

Commit c02eca2

Browse files
committed
try out spinning full stack for testing metaflow
1 parent 40ca1d9 commit c02eca2

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test Metaflow with complete Kubernetes stack
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Check out source
11+
uses: actions/checkout@v4
12+
13+
- name: Install Metaflow
14+
run: |
15+
python -m pip install --upgrade pip
16+
pip install metaflow kubernetes
17+
18+
19+
- name: Bring up the environment
20+
run: |
21+
echo "Starting environment in the background..."
22+
MINIKUBE_CPUS=2 metaflow-dev all-up &
23+
# Give time to spin up. Adjust as needed:
24+
sleep 150
25+
26+
- name: Wait & run flow
27+
run: |
28+
metaflow-dev shell
29+
echo "Environment is ready; running flow now..."
30+
python metaflow/tutorials/00-helloworld/helloworld.py run --with kubernetes
31+
32+
- name: Tear down environment
33+
run: |
34+
metaflow-dev down

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- uses: pre-commit/action@9b88afc9cd57fd75b655d5c71bd38146d07135fe # v2.0.3
2020

2121
Python:
22+
if: false # disable for testing purposes.
2223
name: core / Python ${{ matrix.ver }} on ${{ matrix.os }}
2324
runs-on: ${{ matrix.os }}
2425
strategy:
@@ -55,6 +56,7 @@ jobs:
5556
run: tox
5657

5758
R:
59+
if: false # disable for testing purposes.
5860
name: core / R ${{ matrix.ver }} on ${{ matrix.os }}
5961
runs-on: ${{ matrix.os }}
6062
strategy:

0 commit comments

Comments
 (0)