From b013f3eedc6c2f326718532f278bc1ad3828dc98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Sat, 30 Nov 2024 15:28:13 +0200 Subject: [PATCH] Updated FastAPI job to use uv like upstream does --- .github/workflows/test-downstream.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-downstream.yml b/.github/workflows/test-downstream.yml index 445af864..da0f6b64 100644 --- a/.github/workflows/test-downstream.yml +++ b/.github/workflows/test-downstream.yml @@ -73,15 +73,18 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "${{ matrix.python-version }}" - allow-prereleases: true - cache: pip - cache-dependency-path: | - requirements-tests.txt + - name: Setup uv + uses: astral-sh/setup-uv@v3 + with: + version: "0.4.15" + enable-cache: true + cache-dependency-glob: | + requirements**.txt pyproject.toml - name: Install dependencies run: | - pip install -r requirements-tests.txt - pip install anyio[trio]@git+https://github.com/agronholm/anyio.git@${{ github.ref_name }} + uv pip install -r requirements-tests.txt + uv pip install anyio[trio]@git+https://github.com/agronholm/anyio.git@${{ github.ref_name }} - name: Run tests run: pytest -W "ignore:Unclosed