File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,23 @@ jobs:
1414 python-version : ["3.10"]
1515
1616 steps :
17- - uses : actions/checkout@v2
17+ - uses : actions/checkout@v3
1818
1919 - name : Set up Python ${{ matrix.python-version }}
20- uses : actions/setup-python@v2
20+ uses : actions/setup-python@v4
2121 with :
2222 python-version : ${{ matrix.python-version }}
23-
24- - name : Install dependencies
23+ # ---------- install uv -------------------------------------------------
24+ - name : Install uv (fast dependency resolver)
2525 run : |
26- python -m pip install --upgrade pip
27- pip install pytest pytest-asyncio pytest-cov requests-mock boto3 moto
28- pip install -r requirements.txt
26+ python -m pip install --upgrade pip uv
2927
28+ # ---------- reproduce locked env --------------------------------------
29+ - name : Sync project dependencies from uv.lock
30+ run : |
31+ uv pip install --system -r uv.lock
32+
33+ # ---------- run test suite -----------------------------------
3034 - name : Run tests and generate coverage report
3135 run : |
3236 pytest tests/ --cov=app --cov-report=xml
You can’t perform that action at this time.
0 commit comments