Skip to content

Commit f6f51c9

Browse files
committed
Upgrade to Resonant 0.43
1 parent 1180191 commit f6f51c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+9251
-685
lines changed

.copier-answers.resonant.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
_commit: v0.43.2
2+
_src_path: gh:kitware-resonant/cookiecutter-resonant
3+
core_app_name: core
4+
include_example_code: false
5+
project_name: GeoInsight
6+
project_slug: geoinsight
7+
python_package_name: geoinsight
8+
site_domain: api.geoinsight.kitware.com

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package-lock.json linguist-generated=true
2+
uv.lock linguist-generated=true

.github/workflows/ci.yml

Lines changed: 43 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,67 +4,75 @@ on:
44
push:
55
branches:
66
- master
7-
7+
permissions:
8+
contents: read
89
jobs:
910
lint-client:
1011
runs-on: ubuntu-22.04
1112
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
14-
- run: cd web && npm i && npm run lint
13+
- uses: actions/checkout@v6
14+
- uses: actions/setup-node@v6
15+
- run: |
16+
npm ci
17+
working-directory: web
18+
- run: |
19+
npm run lint
20+
working-directory: web
1521
16-
tox:
17-
runs-on: ubuntu-22.04
18-
strategy:
19-
fail-fast: false
20-
matrix:
21-
tox-env: [lint, test, check-migrations]
22+
test-server:
23+
runs-on: ubuntu-latest
2224
services:
2325
postgres:
24-
image: postgis/postgis:14-3.3
26+
image: postgis/postgis:18-3.6
2527
env:
2628
POSTGRES_DB: django
2729
POSTGRES_PASSWORD: postgres
30+
options: >-
31+
--health-cmd "pg_isready --username postgres"
32+
--health-start-period 30s
33+
--health-start-interval 2s
2834
ports:
2935
- 5432:5432
3036
rabbitmq:
31-
image: rabbitmq:management
37+
image: rabbitmq:management-alpine
38+
options: >-
39+
--health-cmd "rabbitmq-diagnostics ping"
40+
--health-start-period 30s
41+
--health-start-interval 2s
3242
ports:
3343
- 5672:5672
3444
minio:
35-
image: bitnamilegacy/minio:2025.4.22
45+
# This image does not require any command arguments (which GitHub Actions don't support)
46+
image: bitnamilegacy/minio:latest
3647
env:
3748
MINIO_ROOT_USER: minioAccessKey
3849
MINIO_ROOT_PASSWORD: minioSecretKey
50+
options: >-
51+
--health-cmd "mc ready local"
52+
--health-timeout 1s
53+
--health-start-period 30s
54+
--health-start-interval 2s
3955
ports:
4056
- 9000:9000
4157
redis:
42-
image: redis:latest
58+
image: redis:alpine
59+
options: >-
60+
--health-cmd "redis-cli ping"
61+
--health-start-period 30s
62+
--health-start-interval 2s
4363
ports:
4464
- 6379:6379
4565
steps:
46-
- uses: actions/checkout@v4
47-
- name: Set up Python
48-
uses: actions/setup-python@v5
49-
with:
50-
python-version: "3.10"
51-
- name: Install tox
52-
run: |
53-
pip install --upgrade pip
54-
pip install tox
55-
- name: Install GDAL
56-
run: |
57-
sudo apt-add-repository ppa:ubuntugis/ppa
58-
sudo apt-get update
59-
sudo apt-get install gdal-bin libgdal-dev
60-
pip install GDAL==`gdal-config --version`
66+
- name: Checkout repository
67+
uses: actions/checkout@v6
68+
- name: Install uv
69+
uses: astral-sh/setup-uv@v7
6170
- name: Run tests
6271
run: |
63-
tox -e ${{ matrix.tox-env }}
72+
uv run tox
6473
env:
6574
DJANGO_DATABASE_URL: postgres://postgres:postgres@localhost:5432/django
66-
DJANGO_MINIO_STORAGE_ENDPOINT: localhost:9000
67-
DJANGO_MINIO_STORAGE_ACCESS_KEY: minioAccessKey
68-
DJANGO_MINIO_STORAGE_SECRET_KEY: minioSecretKey
69-
DJANGO_HOMEPAGE_REDIRECT_URL: http://localhost:8080/
70-
REDIS_URL: redis://localhost:6379
75+
DJANGO_CELERY_BROKER_URL: amqp://localhost:5672/
76+
DJANGO_MINIO_STORAGE_URL: http://minioAccessKey:minioSecretKey@localhost:9000/django-storage
77+
DJANGO_REDIS_URL: redis://localhost:6379
78+
DJANGO_GEOINSIGHT_WEB_URL: http://localhost:8080/

.github/workflows/nightly_ci.yml

Lines changed: 40 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,56 +4,70 @@ on:
44
schedule:
55
# Run at 1:14 am every night, to avoid high load at common schedule times.
66
- cron: "14 1 * * *"
7-
7+
permissions:
8+
contents: read
89
jobs:
9-
test:
10+
lint-client:
1011
runs-on: ubuntu-22.04
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
- run: cd web && npm i && npm run lint
16+
17+
test-server:
18+
runs-on: ubuntu-latest
1119
services:
1220
postgres:
13-
image: postgis/postgis:14-3.3
21+
image: postgis/postgis:18-3.6
1422
env:
1523
POSTGRES_DB: django
1624
POSTGRES_PASSWORD: postgres
25+
options: >-
26+
--health-cmd "pg_isready --username postgres"
27+
--health-start-period 30s
28+
--health-start-interval 2s
1729
ports:
1830
- 5432:5432
1931
rabbitmq:
20-
image: rabbitmq:management
32+
image: rabbitmq:management-alpine
33+
options: >-
34+
--health-cmd "rabbitmq-diagnostics ping"
35+
--health-start-period 30s
36+
--health-start-interval 2s
2137
ports:
2238
- 5672:5672
2339
minio:
40+
# This image does not require any command arguments (which GitHub Actions don't support)
2441
image: bitnamilegacy/minio:2025.4.22
2542
env:
2643
MINIO_ROOT_USER: minioAccessKey
2744
MINIO_ROOT_PASSWORD: minioSecretKey
45+
options: >-
46+
--health-cmd "mc ready local"
47+
--health-timeout 1s
48+
--health-start-period 30s
49+
--health-start-interval 2s
2850
ports:
2951
- 9000:9000
3052
redis:
31-
image: redis:latest
53+
image: redis:alpine
54+
options: >-
55+
--health-cmd "redis-cli ping"
56+
--health-start-period 30s
57+
--health-start-interval 2s
3258
ports:
3359
- 6379:6379
3460
steps:
35-
- uses: actions/checkout@v4
36-
- name: Set up Python
37-
uses: actions/setup-python@v5
38-
with:
39-
python-version: "3.10"
40-
- name: Install tox
41-
run: |
42-
pip install --upgrade pip
43-
pip install tox
44-
- name: Install GDAL
45-
run: |
46-
sudo apt-add-repository ppa:ubuntugis/ppa
47-
sudo apt-get update
48-
sudo apt-get install gdal-bin libgdal-dev
49-
pip install GDAL==`gdal-config --version`
61+
- name: Checkout repository
62+
uses: actions/checkout@v5
63+
- name: Install uv
64+
uses: astral-sh/setup-uv@v7
5065
- name: Run tests
5166
run: |
52-
tox -e test-slow
67+
uv run tox -e test -- -m slow
5368
env:
5469
DJANGO_DATABASE_URL: postgres://postgres:postgres@localhost:5432/django
55-
DJANGO_MINIO_STORAGE_ENDPOINT: localhost:9000
56-
DJANGO_MINIO_STORAGE_ACCESS_KEY: minioAccessKey
57-
DJANGO_MINIO_STORAGE_SECRET_KEY: minioSecretKey
58-
DJANGO_HOMEPAGE_REDIRECT_URL: http://localhost:8080/
59-
REDIS_URL: redis://localhost:6379
70+
DJANGO_CELERY_BROKER_URL: amqp://localhost:5672/
71+
DJANGO_MINIO_STORAGE_URL: http://minioAccessKey:minioSecretKey@localhost:9000/django-storage-testing
72+
DJANGO_REDIS_URL: redis://localhost:6379
73+
DJANGO_GEOINSIGHT_WEB_URL: http://localhost:8080/

0 commit comments

Comments
 (0)