Skip to content

Commit 765fc35

Browse files
committed
Worked in review comments
Also the failures do not seem to be caught by the tests.
1 parent a23fdd6 commit 765fc35

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/test_streamlit_folium.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
ref: master
3030
path: streamlit_folium # Checkout into a subdirectory
3131

32+
- name: Install streamlit_folium
33+
run: |
34+
cd streamlit_folium
35+
pip install -e .
36+
3237
- name: Install streamlit_folium dev dependencies
3338
run: |
3439
pip install -r streamlit_folium/tests/requirements.txt
@@ -47,6 +52,17 @@ jobs:
4752

4853
- name: Test with pytest and retry flaky tests up to 3 times
4954
run: |
50-
cd streamlit_folium
51-
pip install streamlit-folium
5255
pytest tests/test_frontend.py --browser chromium -s --reruns 3 --junit-xml=test-results.xml
56+
57+
- name: Surface failing tests
58+
if: always()
59+
uses: pmeier/pytest-results-action@main
60+
with:
61+
path: test-results.xml
62+
fail-on-empty: false
63+
64+
- uses: actions/upload-artifact@v3
65+
if: failure()
66+
with:
67+
name: screenshots
68+
path: screenshot*.png

0 commit comments

Comments
 (0)