Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,24 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
- name: Setup Micromamba env
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false
environment-name: TEST
create-args: >-
python=3
--file requirements.txt
--file requirements-dev.txt
cache-environment: true

- name: Create environment
- name: Install folium from source
shell: bash -l {0}
run: |
micromamba create --name TEST python=3 --file requirements.txt --file requirements-dev.txt --channel conda-forge
micromamba activate TEST
pip install -e . --no-deps --force-reinstall
run: python -m pip install -e . --no-deps --force-reinstall

- name: Build documentation
shell: bash -l {0}
run: |
set -e
micromamba activate TEST
cp examples/Quickstart.ipynb docs/quickstart.ipynb
pushd docs
make clean html linkcheck
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/test_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
- name: Setup Micromamba env
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false
environment-name: TEST
create-args: >-
python=${{ matrix.python-version }}
--file requirements.txt
--file requirements-dev.txt
cache-environment: true

- name: Python ${{ matrix.python-version }}
- name: Install folium from source
shell: bash -l {0}
run: |
micromamba create --name TEST python=${{ matrix.python-version }} --file requirements.txt --file requirements-dev.txt --channel conda-forge
micromamba activate TEST
python -m pip install -e . --no-deps --force-reinstall
run: python -m pip install -e . --no-deps --force-reinstall

- name: Tests
- name: Code tests
shell: bash -l {0}
run: |
micromamba activate TEST
python -m pytest -vv --ignore=tests/selenium
run: python -m pytest -vv --ignore=tests/selenium
22 changes: 11 additions & 11 deletions .github/workflows/test_code_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
- name: Setup Micromamba env
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false
environment-name: TEST
create-args: >-
python=3
--file requirements.txt
--file requirements-dev.txt
cache-environment: true

- name: Create env
- name: Install folium from source
shell: bash -l {0}
run: |
micromamba create --name TEST python=${{ matrix.python-version }} --file requirements.txt --file requirements-dev.txt --channel conda-forge
micromamba activate TEST
python -m pip install -e . --no-deps --force-reinstall
run: python -m pip install -e . --no-deps --force-reinstall

- name: Notebook tests
shell: bash -l {0}
run: |
micromamba activate TEST
python -m pytest --nbval-lax examples --ignore=examples/WmsTimeDimension.ipynb
run: python -m pytest --nbval-lax examples --ignore=examples/WmsTimeDimension.ipynb
19 changes: 10 additions & 9 deletions .github/workflows/test_latest_branca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,23 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
- name: Setup Micromamba env
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false
environment-name: TEST
create-args: >-
python=3
--file requirements.txt
--file requirements-dev.txt
cache-environment: true

- name: Python 3.x
- name: Install folium from source
shell: bash -l {0}
run: |
micromamba create --name TEST python=${{ matrix.python-version }} --file requirements.txt --file requirements-dev.txt --channel conda-forge
micromamba activate TEST
python -m pip install -e . --no-deps --force-reinstall
run: python -m pip install -e . --no-deps --force-reinstall

- name: Tests with latest branca
shell: bash -l {0}
run: |
micromamba activate TEST
micromamba remove branca --yes --force
python -m pip install git+https://github.com/python-visualization/branca.git
python -m pytest -vv --ignore=tests/selenium
18 changes: 10 additions & 8 deletions .github/workflows/test_mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,22 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
- name: Setup Micromamba env
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false
environment-name: TEST
create-args: >-
python=3
--file requirements.txt
--file requirements-dev.txt
cache-environment: true

- name: Create env
- name: Install folium from source
shell: bash -l {0}
run: |
micromamba create --name TEST python=${{ matrix.python-version }} --file requirements.txt --file requirements-dev.txt --channel conda-forge
micromamba activate TEST
python -m pip install -e . --no-deps --force-reinstall

- name: Selenium tests
- name: Mypy test
shell: bash -l {0}
run: |
micromamba activate TEST
mypy folium
22 changes: 11 additions & 11 deletions .github/workflows/test_selenium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
- name: Setup Micromamba env
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false
environment-name: TEST
create-args: >-
python=3
--file requirements.txt
--file requirements-dev.txt
cache-environment: true

- name: Create env
- name: Install folium from source
shell: bash -l {0}
run: |
micromamba create --name TEST python=${{ matrix.python-version }} --file requirements.txt --file requirements-dev.txt --channel conda-forge
micromamba activate TEST
python -m pip install -e . --no-deps --force-reinstall
run: python -m pip install -e . --no-deps --force-reinstall

- name: Selenium tests
shell: bash -l {0}
run: |
micromamba activate TEST
python -m pytest tests/selenium -vv
run: python -m pytest tests/selenium -vv
25 changes: 14 additions & 11 deletions .github/workflows/test_style_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,23 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
- name: Setup Micromamba env
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false
environment-name: TEST
create-args: >-
python=3
--file requirements.txt
--file requirements-dev.txt
cache-environment: true

- name: Create env
- name: Install folium from source
shell: bash -l {0}
run: |
micromamba create --name TEST python=${{ matrix.python-version }} --file requirements.txt --file requirements-dev.txt --channel conda-forge
micromamba activate TEST
python -m pip install -e . --no-deps --force-reinstall
run: python -m pip install -e . --no-deps --force-reinstall

- name: Notebook coding standards tests
shell: bash -l {0}
run: |
micromamba activate TEST
for fname in examples/*.ipynb; do echo $fname $(flake8-nb $fname --ignore=W391,E226,E402,W504,I100,I201,I202,E703 --max-line-length=120 --show-source --count); done
run: >
for fname in examples/*.ipynb;
do echo $fname $(flake8-nb $fname --ignore=W391,E226,E402,W504,I100,I201,I202,E703 --max-line-length=120 --show-source --count);
done