Skip to content

Commit

Permalink
Updated downstream test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Nov 30, 2024
1 parent 93c0cd6 commit a0a6556
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/test-downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name: Test against downstream projects

on:
push:
branches: [update-downstream-tests]
workflow_dispatch:

jobs:
Expand All @@ -11,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.10", "3.12"]
python-version: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -37,7 +39,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.10", "3.12"]
python-version: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -63,7 +65,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.11"]
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -89,21 +91,21 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.10", "3.12"]
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v4
with:
repository: litestar-org/litestar
- uses: pdm-project/setup-pdm@v3
name: Set up PDM
- name: Set up python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-python-prereleases: false
cache: true
cache-dependency-path: pdm.lock
python-version: ${{ inputs.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.5.4"
enable-cache: true
- 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 }}
run: uv sync
- name: Test
run: pdm run pytest docs/examples tests -n auto
run: uv run pytest docs/examples tests -n auto

0 comments on commit a0a6556

Please sign in to comment.