Skip to content

Commit

Permalink
Updated downstream test workflows and their target Python versions
Browse files Browse the repository at this point in the history
Litestar still won't install on Python 3.13 due to msgspec, so I'm keeping it at 3.12 until that's fixed.
  • Loading branch information
agronholm committed Nov 30, 2024
1 parent 93c0cd6 commit 44405f4
Showing 1 changed file with 29 additions and 20 deletions.
49 changes: 29 additions & 20 deletions .github/workflows/test-downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 +37,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,47 +63,56 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.11"]
python-version: ["3.9", "3.13"]
env:
UV_SYSTEM_PYTHON: 1
steps:
- uses: actions/checkout@v4
with:
repository: tiangolo/fastapi
- 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: bash scripts/test.sh
run: pytest -W ignore::ResourceWarning
env:
PYTHONPATH: ./docs_src

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"]
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: ${{ inputs.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}
allow-python-prereleases: false
cache: true
cache-dependency-path: pdm.lock
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 }}
uv sync
uv pip install anyio[trio]@git+https://github.com/agronholm/anyio.git@${{ github.ref_name }}
- name: Test
run: pdm run pytest docs/examples tests -n auto
run: uv run pytest docs/examples tests -n auto

0 comments on commit 44405f4

Please sign in to comment.