File tree Expand file tree Collapse file tree 1 file changed +14
-19
lines changed
Expand file tree Collapse file tree 1 file changed +14
-19
lines changed Original file line number Diff line number Diff line change 33 push :
44 pull_request :
55
6+
7+ env :
8+ UV_SYSTEM_PYTHON : 1
9+
10+
611# adapted from: https://github.com/tiangolo/poetry-version-plugin
712jobs :
813 test :
914 strategy :
1015 fail-fast : true
1116 matrix :
1217 os : [ "ubuntu-latest", "windows-latest"]
13- python-version : [ "3.10" ]
14- defaults :
15- run :
16- shell : bash
18+ python-version : [ "3.10", "3.11", "3.12", "3.13" ]
19+
1720 runs-on : ${{ matrix.os }}
1821 steps :
1922 - name : Check out repository
20- uses : actions/checkout@v3
21-
23+ uses : actions/checkout@v4
2224 - name : Set up python ${{ matrix.python-version }}
2325 id : setup-python
24- uses : actions/setup-python@v4
25- with :
26- python-version : ${{ matrix.python-version }}
27- cache : pip
28- cache-dependency-path : requirements/requirements-${{ matrix.os }}-${{ matrix.python-version }}.txt
29-
26+ uses : actions/setup-python@v5
27+ - name : Install uv
28+ uses : astral-sh/setup-uv@v4
3029 - name : Install pinned requirements
31- run : |
32- python -m pip install --upgrade pip
33- pip install -r requirements/requirements-${{ matrix.os }}-${{ matrix.python-version }}.txt --prefer-binary
34-
30+ run : uv pip -r requirements/requirements-${{ matrix.os }}-${{ matrix.python-version }}.txt --prefer-binary
3531 - name : Install test requirements
36- run : pip install .[test]
37-
32+ run : uv pip install .[test]
3833 - name : Run tests
3934 run : |
40- pytest tests/
35+ uv run pytest tests/
You can’t perform that action at this time.
0 commit comments