From fe31dd5ba3fd18209039d20e4cf971ebfe4116e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Sat, 16 Dec 2023 19:02:11 +0200 Subject: [PATCH] Added Litestar to the downstream test suite --- .github/workflows/test-downstream.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/test-downstream.yml b/.github/workflows/test-downstream.yml index 67bc4e5b..f66526bc 100644 --- a/.github/workflows/test-downstream.yml +++ b/.github/workflows/test-downstream.yml @@ -82,3 +82,28 @@ jobs: pip install anyio[trio]@git+https://github.com/agronholm/anyio.git@${{ github.ref_name }} - name: Run tests run: bash scripts/test.sh + + litestar: + name: "Litestar on Python ${{ matrix.python-version }}" + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.10", "3.12"] + steps: + - uses: actions/checkout@v4 + with: + repository: litestar-org/litestar + - uses: pdm-project/setup-pdm@v3 + name: Set up PDM + with: + python-version: ${{ matrix.python-version }} + allow-python-prereleases: false + cache: true + cache-dependency-path: pdm.lock + - name: Install dependencies + run: | + pdm install -G:all + pdm add --no-lock --update-reuse-installed anyio[trio]@git+https://github.com/agronholm/anyio.git@${{ github.ref_name }} + - name: Test + run: pdm run pytest docs/examples tests -n auto