@@ -13,40 +13,26 @@ jobs:
1313 runs-on : ubuntu-latest
1414 strategy :
1515 matrix :
16- python-version : ["3.9 ", "3.10 ", "3.11 "]
16+ python-version : ["3.10 ", "3.11 ", "3.12", "3.13 "]
1717 steps :
1818 - uses : actions/checkout@v4
1919 - name : Set up Python ${{ matrix.python-version }}
2020 uses : actions/setup-python@v5
2121 with :
2222 python-version : ${{ matrix.python-version }}
23- - name : Install Poetry
24- uses : snok/install-poetry@v1
23+ - name : Install uv and set the python version
24+ uses : astral-sh/setup-uv@v6
2525 with :
26- virtualenvs-create : true
27- virtualenvs-in-project : true
28- installer-parallel : true
26+ python-version : ${{ matrix.python-version }}
27+ # Enable caching for uv
28+ enable-cache : true
2929 - name : Set up Java
3030 uses : actions/setup-java@v4
3131 with :
3232 distribution : ' temurin'
3333 java-version : ' 17'
34- - name : Load cached venv
35- id : cached-poetry-dependencies
36- uses : actions/cache@v4
37- with :
38- path : .venv
39- key : venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
40- - name : Install dependencies for Python 3.11
41- # we do *not* install the dedupe extra because its dependency on PyLBFGS requires an older version
42- # of Cython that is not available in python 3.11
43- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true' && matrix.python-version == '3.11'
44- run : poetry install --no-interaction --no-root -E allegro -E brickify -E web -E orm -E reasonable -E persistence -E bacnet -E networkx
4534 - name : Install all dependencies for other Python versions
46- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true' && matrix.python-version != '3.11'
47- run : poetry install --no-interaction --no-root --all-extras
35+ run : uv sync --all-extras
4836 - name : Run tests
49- run : |
50- source .venv/bin/activate
51- pytest -s -vvvv
37+ run : uv run pytest -s -vvvv
5238
0 commit comments