55 name : Test
66 runs-on : ubuntu-latest
77 container :
8- image : python:${{ matrix.python-version }}-trixie
8+ image : python:${{ matrix.python-version }}-slim
99 strategy :
1010 matrix :
1111 python-version : ["3.10", "3.11", "3.12", "3.13"]
@@ -14,25 +14,23 @@ jobs:
1414 - name : Checkout code
1515 uses : actions/checkout@v4
1616
17- - name : Install Poetry
18- uses : snok/install-poetry@v1
19- with :
20- virtualenvs-in-project : true
17+ - name : Install uv
18+ uses : astral-sh/setup-uv@v7
2119
2220 - name : Initialize environment
23- run : poetry install
21+ run : uv sync --locked --all-extras --dev
2422
2523 - name : Run black
26- run : poetry run black temba_client
24+ run : uv run black temba_client
2725
2826 - name : Run ruff
29- run : poetry run ruff check temba_client
27+ run : uv run ruff check temba_client
3028
3129 - name : Run isort
32- run : poetry run isort temba_client
30+ run : uv run isort temba_client
3331
3432 - name : Run tests
35- run : poetry run nose2 -C --coverage temba_client --coverage-report term --coverage-report xml
33+ run : uv run nose2 -C --coverage temba_client --coverage-report term --coverage-report xml
3634
3735 - name : Upload coverage
3836 if : success()
@@ -46,14 +44,13 @@ jobs:
4644 if : startsWith(github.ref, 'refs/tags/')
4745 runs-on : ubuntu-latest
4846 container :
49- image : python:3.10-trixie
47+ image : python:3.10-slim
5048 steps :
5149 - name : Checkout code
5250 uses : actions/checkout@v4
5351
5452 - name : Publish release
5553 run : |
56- python -m pip install -U pip poetry
57- poetry build
58- poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
59- poetry publish
54+ python -m pip install -U pip uv
55+ uv build
56+ uv publish --token ${{ secrets.PYPI_TOKEN }}
0 commit comments