@@ -17,37 +17,38 @@ jobs:
17
17
python : ['3.9', '3.10', '3.11', '3.12', '3.13']
18
18
steps :
19
19
- uses : actions/checkout@v4
20
- - uses : actions/setup-python@v5
20
+ - name : Install uv
21
+ uses : astral-sh/setup-uv@v4
21
22
with :
22
23
python-version : ${{ matrix.python }}
23
- cache : ' pip '
24
- cache-dependency-path : |
25
- '../ **/requirements*.txt'
26
- '../ **/setup.py'
27
- - run : python -m pip install --upgrade setuptools pip tox virtualenv
24
+ enable- cache : true
25
+ cache-dependency-glob : |
26
+ **/setup.py
27
+ **/requirements*.txt
28
+ - run : uv tool install tox --with tox-uv
28
29
# Run tox only for the installed py version on the runner as outlined in the python matrix
29
30
# Ensures the correct py version is installed and tested as opposed to 'tox' which attempts to run for all py versions in tox.ini
30
- - run : tox -e py
31
- - run : tox -e mypy
31
+ - run : uv run tox -e py
32
+ - run : uv run tox -e mypy
32
33
33
34
deploy :
34
35
# Run tests beforing deploying to pypi
35
36
needs : tox
36
37
runs-on : ubuntu-latest
37
38
steps :
38
39
- uses : actions/checkout@v4
39
- - name : Set up Python
40
- uses : actions /setup-python@v5
40
+ - name : Install uv
41
+ uses : astral-sh /setup-uv@v4
41
42
with :
42
- python-version : 3.13
43
- cache : ' pip '
44
- cache-dependency-path : |
45
- '../ **/requirements*.txt'
46
- '../ **/setup.py'
43
+ python-version : ' 3.13'
44
+ enable- cache : true
45
+ cache-dependency-glob : |
46
+ **/setup.py
47
+ **/requirements*.txt
47
48
- name : Install dependencies
48
- run : pip install wheel
49
+ run : uv pip --system --upgrade install wheel
49
50
- name : Build package
50
- run : python setup.py sdist bdist_wheel
51
+ run : uv run python setup.py sdist bdist_wheel
51
52
- name : Publish package
52
53
uses : pypa/gh-action-pypi-publish@release/v1
53
54
with :
0 commit comments