2424 - name : Checkout Folium
2525 uses : actions/checkout@v5
2626
27+ - name : Install uv
28+ uses : astral-sh/setup-uv@v4
29+
2730 - name : Checkout Streamlit Folium
2831 uses : actions/checkout@v5
2932 with :
@@ -40,29 +43,27 @@ 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+ cd streamlit_folium
51+ uv run playwright install --with-deps
5452
5553 - name : Install annotate-failures-plugin
56- run : pip install pytest-github-actions-annotate-failures coverage
54+ run : |
55+ cd streamlit_folium
56+ uv add pytest-github-actions-annotate-failures --dev
5757
5858 - name : Install folium from source
5959 run : |
60- python -m pip install -e . --force-reinstall
60+ cd streamlit_folium
61+ uv pip install -e .. --force-reinstall
6162
6263 - name : Test with pytest and retry flaky tests up to 3 times
6364 run : |
6465 cd streamlit_folium
65- python -m pytest tests/test_frontend.py --browser chromium -s --reruns 3 -k "not test_layer_control_dynamic_update"
66+ uv run pytest tests/test_frontend.py --browser chromium -s --reruns 3 -k "not test_layer_control_dynamic_update"
6667
6768 - name : Surface failing tests
6869 if : always()
7172 path : streamlit_folium/test-results.xml
7273 fail-on-empty : false
7374
74-
7575 - name : Upload coverage
7676 if : always()
7777 uses : actions/upload-artifact@v4
0 commit comments