From 0008ec69c4007cb988fd215144a3aea9daaa8ecc Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Fri, 24 Jan 2025 09:18:21 -0600 Subject: [PATCH] Run multiple commands in ecosystem tests (#10920) --- .github/workflows/ci.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f047b298..6960df82a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -655,13 +655,19 @@ jobs: matrix: include: - repo: "prefecthq/prefect" - command: "uv pip install -e '.[dev]'" + commands: + - "uv venv" + - "uv pip install -e '.[dev]'" python: "3.9" - repo: "pallets/flask" - command: "uv pip install -r requirements/dev.txt" + commands: + - "uv venv" + - "uv pip install -r requirements/dev.txt" python: "3.12" - repo: "pydantic/pydantic-core" - command: "uv sync --group all" + commands: + - "uv sync --group all" + - "uv lock --upgrade" python: "3.12" fail-fast: false steps: @@ -683,8 +689,14 @@ jobs: - name: "Test" run: | - ./uv venv - ./${{ matrix.command }} + echo '${{ toJSON(matrix.commands) }}' | jq -r '.[]' | while read cmd; do + echo "+ $cmd" >&2 + if [[ $cmd == uv* ]]; then + ./$cmd + else + $cmd + fi + done smoke-test-linux: timeout-minutes: 10