1212
1313jobs :
1414 tests :
15- name : ${{ matrix.python }}
15+ name : py ${{ matrix.python }} unit tests
1616 runs-on : ubuntu-latest
1717 strategy :
1818 fail-fast : false
@@ -22,39 +22,31 @@ jobs:
2222 - ' 3.12'
2323 - ' 3.11'
2424 - ' 3.10'
25+ - ' 3.9'
2526 steps :
2627 - uses : actions/checkout@v4
27- - name : Install Poetry
28- uses : snok/install-poetry@v1
29- - uses : actions/setup-python@v5
28+ - name : Install uv
29+ uses : astral-sh/setup-uv@v3
3030 with :
31- python-version : ${{ matrix.python }}
32- cache : ' poetry'
33- - name : Install dependencies and run tests
34- run : |
35- poetry --version
36- poetry install
37- poetry run pytest --showlocals
31+ enable-cache : true
32+ - name : Install Python ${{ matrix.python }}
33+ run : uv python install ${{ matrix.python }}
34+ - name : Run tests
35+ run : uv run pytest --showlocals
3836
3937 minversions :
4038 name : minimum dependency versions
4139 runs-on : ubuntu-latest
4240 steps :
4341 - uses : actions/checkout@v4
44- - name : Install Poetry
45- uses : snok/install-poetry@v1
46- - uses : actions/setup-python@v5
42+ - name : Install uv
43+ uses : astral-sh/setup-uv@v3
4744 with :
48- python-version : ' 3.10'
49- cache : ' poetry'
50- - run : sed -i -E 's/"(\^|>=)([0-9\.]+)([^,]*)"/"==\2"/' pyproject.toml
51- - run : sed -i -E 's/python = "==/python = "^/' pyproject.toml
52- - name : Install dependencies and run tests
53- run : |
54- poetry --version
55- poetry lock
56- poetry install
57- poetry run pytest --showlocals
45+ enable-cache : true
46+ - name : Install minimum dependencies
47+ run : uv sync --resolution=lowest-direct
48+ - name : Run tests
49+ run : uv run pytest --showlocals
5850
5951 style :
6052 runs-on : ubuntu-latest
6658 runs-on : ubuntu-latest
6759 steps :
6860 - uses : actions/checkout@v4
69- - name : Install Poetry
70- uses : snok/install-poetry@v1
71- - uses : actions/setup-python@v5
61+ - name : Install uv
62+ uses : astral-sh/setup-uv@v3
7263 with :
73- python-version : ' 3.12'
74- cache : ' poetry'
75- - run : |
76- poetry install --with doc
77- poetry run sphinx-build doc build/sphinx/html
64+ enable-cache : true
65+ - run : uv run sphinx-build doc build/sphinx/html
0 commit comments