diff --git a/.github/workflows/test-pipelines.yml b/.github/workflows/test-pipelines.yml index 6e4bcc5..426c673 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 + zenml integration install aws s3 -y --uv - name: Run all tutorial pipelines id: run_all run: | + source .venv/bin/activate failed=() for p in \ "pipelines/hello_pipeline/hello_pipeline.py" \