@@ -18,26 +18,20 @@ jobs:
1818 strategy :
1919 matrix :
2020 python-version : [ '3.9', '3.10', '3.11', '3.12' , '3.13']
21- env :
22- DOCKER_LOGIN : ${{ secrets.DOCKER_USERNAME && secrets.DOCKER_AUTH_TOKEN }}
2321 steps :
2422 - name : Checkout sendgrid-python
25- uses : actions/checkout@v3
23+ uses : actions/checkout@v5
2624
27- - name : Login to Docker Hub
28- if : env.DOCKER_LOGIN
29- uses : docker/login-action@v2
25+ - name : Install uv and set the Python version
26+ uses : astral-sh/setup-uv@v6
3027 with :
31- username : ${{ secrets.DOCKER_USERNAME }}
32- password : ${{ secrets.DOCKER_AUTH_TOKEN }}
28+ python-version : ${{ matrix.python-version }}
3329
34- - name : Install Docker Compose
35- run : |
36- sudo apt-get update
37- sudo apt-get install -y docker-compose
30+ - name : Install the project
31+ run : uv sync --locked --all-extras --group test
3832
39- - name : Build & Test
40- run : make test
33+ - name : Run test
34+ run : uv run coverage run -m unittest discover -s test/unit
4135
4236 deploy :
4337 name : Deploy
@@ -46,19 +40,13 @@ jobs:
4640 runs-on : ubuntu-latest
4741 steps :
4842 - name : Checkout sendgrid-python
49- uses : actions/checkout@v3
43+ uses : actions/checkout@v5
5044
51- - name : Set up Python
52- uses : actions/setup-python@v6
53- with :
54- python-version : ' 3.10'
45+ - name : Install uv
46+ uses : astral-sh/setup-uv@v6
5547
56- - name : Install dependencies
57- run : |
58- python -m pip install --upgrade pip
59- pip install build
60- pip install wheel
61- python setup.py sdist bdist_wheel
48+ - name : Build the project
49+ run : uv build
6250
6351 - name : Create GitHub Release
6452 uses : sendgrid/dx-automator/actions/release@main
0 commit comments