From ee9059978a1e998cac4da805f01d99c760edaad6 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 9 Apr 2024 21:29:39 -0500 Subject: [PATCH] Add ecosystem test for Prefect (#2942) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reproduced https://github.com/astral-sh/uv/issues/2941 and confirmed fix. We probably ought to have some ecosystem test coverage — this seems like a good starting point we can extend to other projects in the future. --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5aabf16a..a84265926 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -224,6 +224,36 @@ jobs: path: ./target/debug/uv.exe retention-days: 1 + ecosystem-test-prefect: + needs: build-binary-linux + name: "ecosystem test | prefect" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.9" + + - 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]' + cache-test-ubuntu: needs: build-binary-linux name: "check cache | ubuntu"