From 520cd4689bbf591f178399f89b8a05b193e43c8c Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 10 Apr 2024 11:51:40 -0500 Subject: [PATCH] Add ecosystem test for flask (#2971) Alternative to: - https://github.com/astral-sh/uv/pull/2967 - #2946 Both of those are big and fail. I'd like to generalize this coverage though. --- .github/workflows/ci.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 221bdacb7..c4e0e628c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -214,35 +214,41 @@ jobs: path: ./target/debug/uv.exe retention-days: 1 - ecosystem-test-prefect: + ecosystem-test: needs: build-binary-linux - name: "ecosystem test | prefect" + name: "ecosystem test | ${{ matrix.repo }}" runs-on: ubuntu-latest + strategy: + matrix: + include: + - repo: "prefecthq/prefect" + command: "uv pip install -e '.[dev]'" + python: "3.9" + - repo: "pallets/flask" + command: "uv pip install -r requirements/dev.txt" + python: "3.12" + fail-fast: false steps: - uses: actions/checkout@v4 + with: + repository: ${{ matrix.repo }} - uses: actions/setup-python@v5 with: - python-version: "3.9" + python-version: ${{ matrix.python }} - name: "Download binary" uses: actions/download-artifact@v4 with: name: uv-linux-${{ github.sha }} - - name: "Clone project" - run: gh repo clone prefecthq/prefect - env: - GH_TOKEN: ${{ github.token }} - - name: "Prepare binary" run: chmod +x ./uv - name: "Test" run: | - cd prefect - ../uv venv - ../uv pip install --upgrade -e '.[dev]' + ./uv venv + ./${{ matrix.command }} cache-test-ubuntu: needs: build-binary-linux