Repository navigation
feat(country-map): retire the notebook in favor of per-country build scripts #45607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rusackas
wants to merge
20
commits into
master
Choose a base branch
from
draft/country-map-scripts
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,229
−4,765
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
2e69f70
feat(country-map): prototype per-country build scripts as a notebook …
rusackas b57c6ad
feat(country-map): convert remaining special-cased countries + plain …
rusackas b05876a
fix(country-map): restore the lost Italy regions+provinces display label
rusackas eb456fd
chore(country-map): regenerate iran/russia/uk/south_africa from curre…
rusackas 94954ea
chore(country-map): retire the notebook in favor of build_maps.py
rusackas 34a7452
fix(country-map): restore Wirral name for GB-WRL and relax russia siz…
rusackas 979047b
fix(country-map): keep Alborz on IR-32 in the iran build script and g…
rusackas 0bf0886
fix(country-map): wire the corrected Philippines province source into…
rusackas 71b13b7
fix(country-map): repoint Madagascar at WHO's replacement boundary se…
rusackas 70962fb
fix(country-map): don't re-resolve plain catalog maps on a --countrie…
rusackas 9d32b45
fix(country-map): clockwise Philippines rings; document REGISTRY step…
rusackas 4e7789c
fix(country-map): annotate philippines _orient_clockwise for mypy
rusackas a7b2c59
fix(country-map): fall back to cwd for bare output paths; document ge…
rusackas 45a2f52
docs(country-map): clarify --countries help for plain catalog entries
rusackas e8961b0
ci(country-map): run build_maps.py instead of the retired notebook in…
rusackas 1c385c4
test(country-map): pin philippines.geojson feature count, ISO codes a…
rusackas a0af8cf
fix(country-map): abort build_maps --countries when any name is unmat…
rusackas d91dfe5
test(country-map): cover build_maps.py subset scoping and bare-path o…
rusackas 34473f2
fix(country-map): address review nits and document Philippines re-key
rusackas a88d4a3
fix(country-map): simplify Russia's Karelia and Murmansk 1:10m rows
rusackas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| # Tests for plugin-chart-country-map's build_maps.py pipeline | ||
| name: Country Map Scripts | ||
|
|
||
| # Runs the pytest suite under the plugin's scripts/tests/ against small | ||
| # synthetic Natural Earth fixtures (no network). The suite needs GeoPandas, | ||
| # which is not part of Superset's own Python dependencies, so it gets its | ||
| # own job rather than riding along with Python-Unit. Scoped via `paths` to | ||
| # PRs that touch the scripts, their pinned dependency set, or this workflow. | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - "master" | ||
| paths: | ||
| - ".github/workflows/country-map-scripts.yml" | ||
| - "superset-frontend/plugins/plugin-chart-country-map/scripts/**" | ||
| pull_request: | ||
| paths: | ||
| - ".github/workflows/country-map-scripts.yml" | ||
| - "superset-frontend/plugins/plugin-chart-country-map/scripts/**" | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build-maps-tests: | ||
| runs-on: ubuntu-26.04 | ||
| timeout-minutes: 15 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Setup Python | ||
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | ||
| with: | ||
| python-version: "3.11" | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| # Same pinned set update-country-maps.yml installs, plus pytest. | ||
| pip install -c superset-frontend/plugins/plugin-chart-country-map/scripts/requirements-constraints.txt \ | ||
| geopandas==1.1.1 shapely==2.1.1 matplotlib==3.10.3 requests==2.32.4 pytest==7.4.4 | ||
|
|
||
| - name: Run build_maps.py tests | ||
| run: | | ||
| python -m pytest superset-frontend/plugins/plugin-chart-country-map/scripts/tests -v |
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.