-
Notifications
You must be signed in to change notification settings - Fork 2.3k
76 lines (63 loc) · 1.87 KB
/
test_streamlit_folium.yml
File metadata and controls
76 lines (63 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Run Streamlit Folium Tests
on:
schedule:
- cron: "0 13 * * *"
pull_request:
push:
branches:
- main
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout Folium
uses: actions/checkout@v4
- name: Setup Micromamba env
uses: mamba-org/setup-micromamba@v2
with:
environment-name: TEST
create-args: >-
python=3
--file requirements.txt
- name: Checkout Streamlit Folium
uses: actions/checkout@v4
with:
repository: randyzwitch/streamlit-folium
ref: master
path: streamlit_folium # Checkout into a subdirectory
- name: Build streamlit_folium javascript
shell: bash -l {0}
run: |
cd streamlit_folium/streamlit_folium/frontend/
npm install
npm run build
- name: Install streamlit_folium dev dependencies
shell: bash -l {0}
run: |
conda install --file streamlit_folium/tests/requirements.txt
- name: Install streamlit-folium
shell: bash -l {0}
run: |
cd streamlit_folium
pip install -e .
- name: Install playwright dependencies
shell: bash -l {0}
run: |
playwright install --with-deps
- name: Install annotate-failures-plugin
run: pip install pytest-github-actions-annotate-failures
- name: Install folium from source
shell: bash -l {0}
run: |
python -m pip install -e . --no-deps --force-reinstall
- name: Test with pytest and retry flaky tests up to 3 times
shell: bash -l {0}
run: |
cd streamlit_folium
pytest tests/test_frontend.py --browser chromium -s --reruns 5 --junit-xml=test-results.xml
- name: Surface failing tests
if: always()
uses: pmeier/pytest-results-action@main
with:
path: streamlit_folium/test-results.xml
fail-on-empty: false