Skip to content

Commit

Permalink
Add streamlit/playwright tests to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hansthen committed Jan 18, 2025
1 parent 3de82bb commit 65a0ef4
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 396 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
run: python -m pip install -e . --no-deps --force-reinstall

- name: Code tests
run: python -m pytest -vv --ignore=tests/selenium
run: python -m pytest -vv --ignore=tests/selenium --ignore=tests/streamlit
39 changes: 39 additions & 0 deletions .github/workflows/test_streamlit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Selenium Tests

on:
pull_request:
push:
branches:
- main

jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9", "3.13" ]
fail-fast: false

steps:
- 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
--file requirements-dev.txt
- name: Install folium from source
shell: bash -l {0}
run: python -m pip install -e . --no-deps --force-reinstall

- name: Install playwright dependencies
run: |
playwright install --with-deps
- name: Streamlit tests
shell: bash -l {0}
run: python -m pytest tests/streamlit -vv
Loading

0 comments on commit 65a0ef4

Please sign in to comment.