File tree 2 files changed +28
-5
lines changed
2 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,23 @@ jobs:
29
29
ref : master
30
30
path : streamlit_folium # Checkout into a subdirectory
31
31
32
- - name : Install streamlit_folium dev dependencies
32
+ - name : Build streamlit_folium javascript
33
+ shell : bash -l {0}
33
34
run : |
34
- pip install -r streamlit_folium/tests/requirements.txt
35
+ cd streamlit_folium/streamlit_folium/frontend/
36
+ npm install
37
+ npm run build
35
38
36
- - name : Install folium from source
39
+ - name : Install streamlit- folium
37
40
shell : bash -l {0}
38
41
run : |
39
- python -m pip install -e . --no-deps --force-reinstall
42
+ cd streamlit_folium
43
+ pip install -e .
44
+
45
+ - name : Install streamlit_folium dev dependencies
46
+ shell : bash -l {0}
47
+ run : |
48
+ pip install -r streamlit_folium/tests/requirements.txt
40
49
41
50
- name : Install playwright dependencies
42
51
run : |
45
54
- name : Install annotate-failures-plugin
46
55
run : pip install pytest-github-actions-annotate-failures
47
56
57
+ - name : Install folium from source
58
+ shell : bash -l {0}
59
+ run : |
60
+ python -m pip install -e . --no-deps --force-reinstall
61
+
48
62
- name : Test with pytest and retry flaky tests up to 3 times
63
+ shell : bash -l {0}
49
64
run : |
50
65
cd streamlit_folium
51
- pip install streamlit-folium
52
66
pytest tests/test_frontend.py --browser chromium -s --reruns 3 --junit-xml=test-results.xml
67
+
68
+ - name : Surface failing tests
69
+ if : always()
70
+ uses : pmeier/pytest-results-action@main
71
+ with :
72
+ path : streamlit_folium/test-results.xml
73
+ fail-on-empty : false
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ class Draw(JSCSSMixin, MacroElement):
121
121
"""
122
122
)
123
123
124
+ """
124
125
default_js = [
125
126
(
126
127
"leaflet_draw_js",
@@ -133,6 +134,7 @@ class Draw(JSCSSMixin, MacroElement):
133
134
"https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.2/leaflet.draw.css",
134
135
)
135
136
]
137
+ """
136
138
137
139
def __init__ (
138
140
self ,
You can’t perform that action at this time.
0 commit comments