File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name: Run Streamlit Folium Tests
2+
3+ on:
4+ pull_request:
5+ push:
6+ branches:
7+ - main
8+
9+ jobs:
10+ run:
11+ runs-on: ubuntu-latest
12+
13+ steps:
14+ - name: Checkout Folium
15+ uses: actions/checkout@v4
16+
17+ - name: Setup Micromamba env
18+ uses: mamba-org/setup-micromamba@v2
19+ with:
20+ environment-name: TEST
21+ create-args: >-
22+ python=3
23+ --file requirements.txt
24+
25+ - name: Checkout Streamlit Folium
26+ uses: actions/checkout@v4
27+ with:
28+ repository: randyzwitch/streamlit-folium
29+ ref: master
30+ path: streamlit_folium # Checkout into a subdirectory
31+
32+ - name: Install streamlit_folium dev dependencies
33+ run: |
34+ pip install -r streamlit_folium/tests/requirements.txt
35+
36+ - name: Install folium from source
37+ shell: bash -l {0}
38+ run: |
39+ python -m pip install -e . --no-deps --force-reinstall
40+
41+ - name: Install playwright dependencies
42+ run: |
43+ playwright install --with-deps
44+
45+ - name: Install annotate-failures-plugin
46+ run: pip install pytest-github-actions-annotate-failures
47+
48+ - name: Test with pytest and retry flaky tests up to 3 times
49+ run: |
50+ cd streamlit_folium
51+ pip install streamlit-folium
52+ pytest tests/test_frontend.py --browser chromium -s --reruns 3 --junit-xml=test-results.xml
You can’t perform that action at this time.
0 commit comments