Skip to content

Commit 3824934

Browse files
committed
modifies backend test coverage and installation
1 parent c694da4 commit 3824934

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/python-app.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)