Repository navigation
fix: limit TopoJson bounds to the selected object #2235
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Tests | |
| # no permissions by default | |
| permissions: {} | |
| on: | |
| schedule: | |
| - cron: "0 13 * * *" | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| run: | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| actions: write | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, windows-latest, macos-latest ] | |
| python-version: [ "3.10", "3.14" ] | |
| fail-fast: false | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Setup Micromamba env | |
| uses: mamba-org/setup-micromamba@f457c30a868e4760d3a6fcea5f25dc655b8edf39 # v3.2.1 | |
| with: | |
| environment-name: TEST | |
| create-args: >- | |
| python=${{ matrix.python-version }} | |
| --file requirements.txt | |
| --file requirements-dev.txt | |
| - name: Install folium from source | |
| run: python -m pip install -e . --no-deps --force-reinstall | |
| - name: Install pixelmatch | |
| run: | | |
| pip install pixelmatch | |
| - name: Code tests | |
| run: | | |
| coverage run -p -m pytest -vv --ignore=tests/selenium --ignore=tests/playwright --ignore=tests/snapshots | |
| pwd | |
| ls -la | |
| - name: Upload coverage | |
| if: always() | |
| uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 | |
| with: | |
| name: coverage-test-code-${{ matrix.os }}-${{ matrix.python-version }} | |
| path: .coverage* | |
| include-hidden-files: true |