Skip to content

Commit

Permalink
try out spinning full stack for testing metaflow
Browse files Browse the repository at this point in the history
  • Loading branch information
saikonen committed Mar 5, 2025
1 parent 40ca1d9 commit c02eca2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/full-stack-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test Metaflow with complete Kubernetes stack

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Check out source
uses: actions/checkout@v4

- name: Install Metaflow
run: |
python -m pip install --upgrade pip
pip install metaflow kubernetes
- name: Bring up the environment
run: |
echo "Starting environment in the background..."
MINIKUBE_CPUS=2 metaflow-dev all-up &
# Give time to spin up. Adjust as needed:
sleep 150
- name: Wait & run flow
run: |
metaflow-dev shell
echo "Environment is ready; running flow now..."
python metaflow/tutorials/00-helloworld/helloworld.py run --with kubernetes
- name: Tear down environment
run: |
metaflow-dev down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- uses: pre-commit/action@9b88afc9cd57fd75b655d5c71bd38146d07135fe # v2.0.3

Python:
if: false # disable for testing purposes.
name: core / Python ${{ matrix.ver }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -55,6 +56,7 @@ jobs:
run: tox

R:
if: false # disable for testing purposes.
name: core / R ${{ matrix.ver }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down

0 comments on commit c02eca2

Please sign in to comment.