11
11
strategy :
12
12
fail-fast : false
13
13
matrix :
14
- python-version : ["3.8 ", "3.10", "3.12 "]
14
+ python-version : ["3.9 ", "3.13 "]
15
15
steps :
16
16
- uses : actions/checkout@v4
17
17
with :
37
37
strategy :
38
38
fail-fast : false
39
39
matrix :
40
- python-version : ["3.8 ", "3.10", "3.12 "]
40
+ python-version : ["3.9 ", "3.13 "]
41
41
steps :
42
42
- uses : actions/checkout@v4
43
43
with :
@@ -63,47 +63,56 @@ jobs:
63
63
strategy :
64
64
fail-fast : false
65
65
matrix :
66
- python-version : ["3.8", "3.11"]
66
+ python-version : ["3.9", "3.13"]
67
+ env :
68
+ UV_SYSTEM_PYTHON : 1
67
69
steps :
68
70
- uses : actions/checkout@v4
69
71
with :
70
72
repository : tiangolo/fastapi
71
73
- uses : actions/setup-python@v5
72
74
with :
73
75
python-version : " ${{ matrix.python-version }}"
74
- allow-prereleases : true
75
- cache : pip
76
- cache-dependency-path : |
77
- requirements-tests.txt
76
+ - name : Setup uv
77
+ uses : astral-sh/setup-uv@v3
78
+ with :
79
+ version : " 0.4.15"
80
+ enable-cache : true
81
+ cache-dependency-glob : |
82
+ requirements**.txt
78
83
pyproject.toml
79
84
- name : Install dependencies
80
85
run : |
81
- pip install -r requirements-tests.txt
82
- pip install anyio[trio]@git+https://github.com/agronholm/anyio.git@${{ github.ref_name }}
86
+ uv pip install -r requirements-tests.txt
87
+ uv pip install anyio[trio]@git+https://github.com/agronholm/anyio.git@${{ github.ref_name }}
83
88
- name : Run tests
84
- run : bash scripts/test.sh
89
+ run : pytest -W ignore::ResourceWarning
90
+ env :
91
+ PYTHONPATH : ./docs_src
85
92
86
93
litestar :
87
94
name : " Litestar on Python ${{ matrix.python-version }}"
88
95
runs-on : ubuntu-latest
89
96
strategy :
90
97
fail-fast : false
91
98
matrix :
92
- python-version : ["3.8", "3.10 ", "3.12"]
99
+ python-version : ["3.9 ", "3.12"]
93
100
steps :
94
101
- uses : actions/checkout@v4
95
102
with :
96
103
repository : litestar-org/litestar
97
- - uses : pdm-project/setup-pdm@v3
98
- name : Set up PDM
104
+ - name : Set up python ${{ inputs.python-version }}
105
+ uses : actions/setup-python@v5
106
+ with :
107
+ python-version : ${{ inputs.python-version }}
108
+ - name : Install uv
109
+ uses : astral-sh/setup-uv@v4
99
110
with :
100
- python-version : ${{ matrix.python-version }}
101
- allow-python-prereleases : false
102
- cache : true
103
- cache-dependency-path : pdm.lock
111
+ version : " 0.5.4"
112
+ enable-cache : true
104
113
- name : Install dependencies
105
114
run : |
106
- pdm install -G:all
107
- pdm add --no-lock --update-reuse-installed anyio[trio]@git+https://github.com/agronholm/anyio.git@${{ github.ref_name }}
115
+ uv sync
116
+ uv pip install anyio[trio]@git+https://github.com/agronholm/anyio.git@${{ github.ref_name }}
108
117
- name : Test
109
- run : pdm run pytest docs/examples tests -n auto
118
+ run : uv run pytest docs/examples tests -n auto
0 commit comments