Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.
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
8 changes: 0 additions & 8 deletions .github/actions/setup-python/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ description: Sets up Python and dependencies using mise and uv
runs:
using: "composite"
steps:
- name: Install GDAL system dependencies
uses: awalsh128/cache-apt-pkgs-action@2c09a5e66da6c8016428a2172bd76e5e4f14bb17 # v1.5.3
with:
packages: gdal-bin libgdal-dev
version: 1.0

- name: Install python and uv
uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3
with:
Expand All @@ -30,8 +24,6 @@ runs:
env:
# Configure a constant location for the uv cache
UV_CACHE_DIR: /tmp/.uv-cache
# Help GDAL Python package find system installation
GDAL_CONFIG: /usr/bin/gdal-config
shell: bash
run: |
uv sync --group dev --locked
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
with:
install: true
cache: true
install_args: "\"cargo:taplo-cli\""
install_args: "\"cargo:taplo-cli\" \"npm:@infisical/cli\""

- name: Run linters
run: |
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
- name: Run fast tests
if: ${{ github.event_name == 'pull_request'}}
run: |
uv run pytest -q --junit-xml=results/pytest-junit.xml -m "not slow"
mise run test:fast:ci

- name: Create test summary
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
- name: Run slow tests (original snapshots)
id: slow-tests-original
run: |
uv run pytest -q --junit-xml=results/pytest-slow-junit.xml -m "slow"
mise run test:slow:ci
if: ${{ github.event_name == 'pull_request' && !cancelled() }}

- name: Create test summary
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
- name: Run slow tests with snapshot update (only failed tests)
id: slow-tests-updated
run: |
uv run pytest -q --junit-xml=results/pytest-slow-updated-junit.xml --last-failed --snapshot-update
mise run test:slow:ci --last-failed --snapshot-update
if: ${{ github.event_name == 'pull_request' && !cancelled() && steps.slow-tests-original.outcome == 'failure' }}

- name: Upload images to imgur and create comparison comment
Expand Down Expand Up @@ -296,7 +296,7 @@ jobs:
- name: Run tests with coverage
if: ${{ !cancelled() }}
run: |
uv run pytest --cov=core --cov-report=term-missing
mise run test:cov

build:
name: Build
Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
This repository will help generate Google Custom Maps -compatible layer files.

Current Features:
* Only works for Munich, Bavaria, Germany.
* Generates layers for:
* Overall game border polygon.
* Lines and points for transit stations in their own layers (tram, subway/lightrail, commuter rail).
* for the devs:
* 5 easy steps for contributors to set up the repo.
* Comprehensive test suite tailed to this domain (unit tests, visual regression tests).
* Seamless & comprehensively configured formatting, linting, and type-checking.
* See [CONTRIBUTING.md](./CONTRIBUTING.md) for more.

- Only works for Munich, Bavaria, Germany.
- Generates layers for:
- Overall game border polygon.
- Lines and points for transit stations in their own layers (tram, subway/lightrail, commuter rail).
- for the devs:
- 5 easy steps for contributors to set up the repo.
- Comprehensive test suite tailed to this domain (unit tests, visual regression tests).
- Seamless & comprehensively configured formatting, linting, and type-checking.
- See [CONTRIBUTING.md](./CONTRIBUTING.md) for more.
15 changes: 13 additions & 2 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@ echo "✅ Project setup complete!"
description = "Lint code with taplo"
run = "taplo lint --no-schema"

[tasks."lint:infisical"]
description = "Scan for secrets checked into code using Infisical"
run = "infisical scan"

[tasks.lint]
depends = ["lint:ruff", "lint:taplo"]
depends = ["lint:*"]
Comment thread
cameronbrill marked this conversation as resolved.

[tasks."lint:ci"]
depends = ["lint:ruff --output-format=github", "lint:taplo"]
depends = ["lint:ruff --output-format=github", "lint:taplo", "lint:infisical"]

[tasks.lint-fix]
description = "Lint and auto-fix code with ruff"
Expand Down Expand Up @@ -80,11 +84,18 @@ echo "✅ Project setup complete!"
description = "Run fast tests only"
run = "uv run pytest -m \"not slow\""

[tasks."test:fast:ci"]
description = "Run fast tests only for CI"
run = "mise run test:fast --junit-xml=results/pytest-junit.xml"
Comment thread
cameronbrill marked this conversation as resolved.

[tasks."test:slow"]
description = "Run slow tests only"
run = "uv run pytest -m slow"
sources = ["tests/test_visual.py", "tests/*.py", "core/**/*.py"]

[tasks."test:slow:ci"]
description = "Run slow tests only"
run = "mise run test:slow --junit-xml=results/pytest-slow-junit.xml"
Comment thread
cameronbrill marked this conversation as resolved.

[tasks.check]
description = "Run all checks (format, lint, typecheck, test)"
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"GDAL==3.4.1",
"geopandas==1.1.1",
"httpx==0.28.1",
"structlog>=25.4.0",
Expand Down
8 changes: 0 additions & 8 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading