Skip to content

Commit 65a0ef4

Browse files
committed
Add streamlit/playwright tests to workflows
1 parent 3de82bb commit 65a0ef4

File tree

3 files changed

+40
-396
lines changed

3 files changed

+40
-396
lines changed

.github/workflows/test_code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
run: python -m pip install -e . --no-deps --force-reinstall
3535

3636
- name: Code tests
37-
run: python -m pytest -vv --ignore=tests/selenium
37+
run: python -m pytest -vv --ignore=tests/selenium --ignore=tests/streamlit
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Selenium Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
run:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: [ "3.9", "3.13" ]
15+
fail-fast: false
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Setup Micromamba env
21+
uses: mamba-org/setup-micromamba@v2
22+
with:
23+
environment-name: TEST
24+
create-args: >-
25+
python=3
26+
--file requirements.txt
27+
--file requirements-dev.txt
28+
29+
- name: Install folium from source
30+
shell: bash -l {0}
31+
run: python -m pip install -e . --no-deps --force-reinstall
32+
33+
- name: Install playwright dependencies
34+
run: |
35+
playwright install --with-deps
36+
37+
- name: Streamlit tests
38+
shell: bash -l {0}
39+
run: python -m pytest tests/streamlit -vv

0 commit comments

Comments
 (0)