From 09108f0f1915ce7663d0e23622770e753a67797a Mon Sep 17 00:00:00 2001 From: Alex Strick van Linschoten Date: Thu, 21 Aug 2025 11:55:06 +0200 Subject: [PATCH 1/2] Use uv and not pip --- .github/workflows/test-pipelines.yml | 31 +++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-pipelines.yml b/.github/workflows/test-pipelines.yml index 6e4bcc5..7ee1b01 100644 --- a/.github/workflows/test-pipelines.yml +++ b/.github/workflows/test-pipelines.yml @@ -14,31 +14,52 @@ jobs: test-pipelines: runs-on: ubuntu-latest env: + ZENML_DEBUG: true ZENML_ANALYTICS_OPT_IN: false + ZENML_LOGGING_VERBOSITY: INFO + UV_HTTP_TIMEOUT: 600 steps: - name: Checkout repository uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" + - name: Install uv + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + source $HOME/.cargo/env + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + - name: Cache UV dependencies + uses: actions/cache@v4 + with: + path: ~/.cache/uv + key: uv-tutorial-${{ runner.os }}-3.12-${{ github.run_id }} + restore-keys: | + uv-tutorial-${{ runner.os }}-3.12- + - name: Create virtual environment + run: | + uv venv - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install zenml[server] --upgrade - pip install -r requirements.txt + source .venv/bin/activate + uv pip install --upgrade pip + uv pip install zenml[server] --upgrade + uv pip install -r requirements.txt - name: Initialize ZenML run: | + source .venv/bin/activate zenml init zenml integration install aws s3 -y - name: Run all tutorial pipelines id: run_all run: | + source .venv/bin/activate failed=() for p in \ "pipelines/hello_pipeline/hello_pipeline.py" \ From 0d2af866af0a699918b253fcd4f8b06c35c5b2e0 Mon Sep 17 00:00:00 2001 From: Alex Strick van Linschoten Date: Thu, 21 Aug 2025 11:57:28 +0200 Subject: [PATCH 2/2] ZenML uses uv for installation as well --- .github/workflows/test-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-pipelines.yml b/.github/workflows/test-pipelines.yml index 7ee1b01..426c673 100644 --- a/.github/workflows/test-pipelines.yml +++ b/.github/workflows/test-pipelines.yml @@ -54,7 +54,7 @@ jobs: run: | source .venv/bin/activate zenml init - zenml integration install aws s3 -y + zenml integration install aws s3 -y --uv - name: Run all tutorial pipelines id: run_all