File tree Expand file tree Collapse file tree 7 files changed +23
-22
lines changed Expand file tree Collapse file tree 7 files changed +23
-22
lines changed Original file line number Diff line number Diff line change 45
45
pwd
46
46
ls -la
47
47
48
- - name : Debug step
49
- run : |
50
- pwd
51
- echo '====='
52
- ls .coverage*
53
-
54
48
- name : Upload coverage
55
49
if : always()
56
50
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 11
11
jobs :
12
12
run :
13
13
runs-on : ubuntu-latest
14
+ defaults :
15
+ run :
16
+ shell : bash -l {0}
14
17
15
18
steps :
16
19
- name : Checkout Folium
55
58
name : coverage-test-geopandas
56
59
path : |
57
60
.coverage*
61
+ include-hidden-files : true
Original file line number Diff line number Diff line change 11
11
jobs :
12
12
run :
13
13
runs-on : ubuntu-latest
14
+ defaults :
15
+ run :
16
+ shell : bash -l {0}
14
17
15
18
steps :
16
19
- uses : actions/checkout@v4
25
28
--file requirements-dev.txt
26
29
27
30
- name : Install folium from source
28
- shell : bash -l {0}
29
31
run : python -m pip install -e . --no-deps --force-reinstall
30
32
31
33
- name : Tests with latest branca
32
- shell : bash -l {0}
33
34
run : |
34
35
micromamba remove branca --yes --force
35
36
python -m pip install git+https://github.com/python-visualization/branca.git
42
43
name : coverage-test-branca
43
44
path : |
44
45
.coverage*
46
+ include-hidden-files : true
Original file line number Diff line number Diff line change 11
11
jobs :
12
12
run :
13
13
runs-on : ubuntu-latest
14
+ defaults :
15
+ run :
16
+ shell : bash -l {0}
14
17
15
18
steps :
16
19
- uses : actions/checkout@v4
25
28
--file requirements-dev.txt
26
29
27
30
- name : Install folium from source
28
- shell : bash -l {0}
29
31
run : |
30
32
python -m pip install -e . --no-deps --force-reinstall
31
33
32
34
- name : Mypy test
33
- shell : bash -l {0}
34
35
run : |
35
36
mypy folium
Original file line number Diff line number Diff line change 15
15
matrix :
16
16
python-version : [ "3.9", "3.13" ]
17
17
fail-fast : false
18
+ defaults :
19
+ run :
20
+ shell : bash -l {0}
18
21
19
22
steps :
20
23
- uses : actions/checkout@v4
@@ -29,17 +32,16 @@ jobs:
29
32
--file requirements-dev.txt
30
33
31
34
- name : Install folium from source
32
- shell : bash -l {0}
33
35
run : python -m pip install -e . --no-deps --force-reinstall
34
36
35
37
- name : Selenium tests
36
- shell : bash -l {0}
37
38
run : coverage run -p -m pytest tests/selenium -vv
38
39
39
40
- name : Upload coverage
40
41
if : always()
41
42
uses : actions/upload-artifact@v4
42
43
with :
43
- name : coverage-test-selenium
44
+ name : coverage-test-selenium-${{ matrix.python-version }}
44
45
path : |
45
46
.coverage*
47
+ include-hidden-files : true
Original file line number Diff line number Diff line change 9
9
jobs :
10
10
run :
11
11
runs-on : ubuntu-latest
12
+ defaults :
13
+ run :
14
+ shell : bash -l {0}
12
15
13
16
steps :
14
17
- name : Checkout Folium
@@ -24,17 +27,14 @@ jobs:
24
27
--file requirements-dev.txt
25
28
26
29
- name : Install pytest plugins and pixelmatch
27
- shell : bash -l {0}
28
30
run : |
29
31
pip install pixelmatch pytest-github-actions-annotate-failures pytest-rerunfailures
30
32
31
33
- name : Install folium from source
32
- shell : bash -l {0}
33
34
run : |
34
35
python -m pip install -e . --no-deps --force-reinstall
35
36
36
37
- name : Test with pytest
37
- shell : bash -l {0}
38
38
run : |
39
39
coverage run -p -m pytest tests/snapshots -s --junit-xml=test-results.xml
40
40
61
61
name : coverage-test-snapshots
62
62
path : |
63
63
.coverage*
64
+ include-hidden-files : true
Original file line number Diff line number Diff line change 11
11
jobs :
12
12
run :
13
13
runs-on : ubuntu-latest
14
+ defaults :
15
+ run :
16
+ shell : bash -l {0}
14
17
15
18
steps :
16
19
- name : Set up Python
@@ -29,40 +32,34 @@ jobs:
29
32
path : streamlit_folium # Checkout into a subdirectory
30
33
31
34
- name : Build streamlit_folium javascript
32
- shell : bash -l {0}
33
35
run : |
34
36
cd streamlit_folium/streamlit_folium/frontend/
35
37
npm install
36
38
npm run build
37
39
38
40
- name : Install streamlit_folium dev dependencies
39
- shell : bash -l {0}
40
41
run : |
41
42
cd streamlit_folium
42
43
python -m pip install --upgrade pip
43
44
pip install -r tests/requirements.txt
44
45
45
46
- name : Install streamlit-folium
46
- shell : bash -l {0}
47
47
run : |
48
48
cd streamlit_folium
49
49
pip install -e .
50
50
51
51
- name : Install playwright dependencies
52
- shell : bash -l {0}
53
52
run : |
54
53
playwright install --with-deps
55
54
56
55
- name : Install annotate-failures-plugin
57
56
run : pip install pytest-github-actions-annotate-failures coverage
58
57
59
58
- name : Install folium from source
60
- shell : bash -l {0}
61
59
run : |
62
60
python -m pip install -e . --force-reinstall
63
61
64
62
- name : Test with pytest and retry flaky tests up to 3 times
65
- shell : bash -l {0}
66
63
run : |
67
64
cd streamlit_folium
68
65
python -m pytest tests/test_frontend.py --browser chromium -s --reruns 3 -k "not test_layer_control_dynamic_update"
You can’t perform that action at this time.
0 commit comments