Skip to content

Commit 5075787

Browse files
committed
Use uv for streamlit_folium installation
1 parent 3fb4422 commit 5075787

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/test_streamlit_folium.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
- name: Checkout Folium
2525
uses: actions/checkout@v4
2626

27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v4
29+
2730
- name: Checkout Streamlit Folium
2831
uses: actions/checkout@v4
2932
with:
@@ -40,29 +43,23 @@ jobs:
4043
- name: Install streamlit_folium dev dependencies
4144
run: |
4245
cd streamlit_folium
43-
python -m pip install --upgrade pip
44-
pip install -r tests/requirements.txt
45-
46-
- name: Install streamlit-folium
47-
run: |
48-
cd streamlit_folium
49-
pip install -e .
46+
uv sync --group dev --group test
5047
5148
- name: Install playwright dependencies
5249
run: |
53-
playwright install --with-deps
50+
uv run playwright install --with-deps
5451
5552
- name: Install annotate-failures-plugin
56-
run: pip install pytest-github-actions-annotate-failures coverage
53+
run: uv add pytest-github-actions-annotate-failures --dev
5754

5855
- name: Install folium from source
5956
run: |
60-
python -m pip install -e . --force-reinstall
57+
uv pip install -e . --force-reinstall
6158
6259
- name: Test with pytest and retry flaky tests up to 3 times
6360
run: |
6461
cd streamlit_folium
65-
python -m pytest tests/test_frontend.py --browser chromium -s --reruns 3 -k "not test_layer_control_dynamic_update"
62+
uv run pytest tests/test_frontend.py --browser chromium -s --reruns 3 -k "not test_layer_control_dynamic_update"
6663
6764
- name: Surface failing tests
6865
if: always()
@@ -71,7 +68,6 @@ jobs:
7168
path: streamlit_folium/test-results.xml
7269
fail-on-empty: false
7370

74-
7571
- name: Upload coverage
7672
if: always()
7773
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)