Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
d1ae3a2
update black;
chrisbc May 29, 2024
b4112ba
add about + versino resolvers; tweak flake8 settings
chrisbc May 30, 2024
fed74ad
update changelog;
chrisbc May 30, 2024
e28ce68
add GHA scripts;
chrisbc May 30, 2024
97f9538
setup poretry group `dev` & remove extras;
chrisbc May 30, 2024
2188a67
added model & node resolvers;
chrisbc May 30, 2024
d14dbeb
new SLT models
chrisbc May 30, 2024
c6d5ec0
add tag attribute on SourceLogicTreeBranch;
chrisbc May 30, 2024
4272e48
add branch_set_short_name
chrisbc May 30, 2024
de8d6bc
add relay node resolvers for all model classes;
chrisbc May 30, 2024
f5584c2
refactor slt schemas into module; more coverage for as_node tests;
chrisbc May 31, 2024
86a8266
add BranchInversionSource class
chrisbc May 31, 2024
086a611
configure api and wsgi entry point
chrisbc Jun 3, 2024
2ae2c2f
rename tests for more clarity;
chrisbc Jun 3, 2024
2239198
add inversion_id property
chrisbc Jun 3, 2024
a88db26
add lru_cache to improve API performance
chrisbc Jun 3, 2024
b33c816
add BranchDistributedSource; remove Node suppurt from source classes;…
chrisbc Jun 3, 2024
80f2b8d
added current_model_version resolver; get_model resolver support defa…
chrisbc Jun 4, 2024
08072c9
GHA deployment tweaks
chrisbc Jun 4, 2024
2604a0b
reorg tests; kill commented code blocks; detox;
chrisbc Jun 4, 2024
21abe66
Merge pull request #20 from GNS-Science/feature/api_based_on_nzshm-model
chrisbc Jun 4, 2024
ad4eeae
revert to secrets for GHA;
chrisbc Jun 4, 2024
60c1e62
change temp api key name;
chrisbc Jun 4, 2024
af4019d
fix serverless deployment config;
chrisbc Jun 4, 2024
a380b7a
use dockerizePip to ensure AWS linuxB compatability (ref GLIBC 2.28 n…
chrisbc Jun 5, 2024
cc60461
update from flask-graphql to graphql-server; version updates;
chrisbc Jun 5, 2024
e76529d
update from flask-graphql to graphql-server;
chrisbc Jun 5, 2024
6a5c629
serverless version updates;
chrisbc Jun 5, 2024
1afb5f8
added fix/test for missing model title;
chrisbc Jun 5, 2024
ad97850
Merge pull request #23 from GNS-Science/fix/model_title_missing
chrisbc Jun 5, 2024
e664ba6
new gmm classes & tests; WIP util LIB is updated;
chrisbc Jun 6, 2024
cdc088f
update nzshm-model; use branch_set short_name for GMM node identity r…
chrisbc Jun 7, 2024
7b65d8d
fix branch_set_short_name attrinute and tests
chrisbc Jun 7, 2024
7c12901
Merge pull request #25 from GNS-Science/feature/24_gmm_logic_tree_cla…
chrisbc Jun 9, 2024
e4fb8d9
[29] use reusable workflow for testing (#31)
voj Apr 28, 2025
71f9fe9
[33] scheduled build (#35)
voj May 8, 2025
0c624b0
github workflow: allow manual triggering of deployment
voj Jul 28, 2025
4f86dfb
update deploy script
voj Jul 28, 2025
f5aeae1
Bump version: 0.2.0 → 0.3.0
voj Jul 28, 2025
ac036ac
Merge branch 'main' into deploy-test
voj Aug 10, 2025
b4ec6ef
[41] Upgrade graphql-server to 3.0.0 (#42)
voj Aug 24, 2025
234b5df
[43] downgrade graphql-server (#45)
voj Aug 28, 2025
fbebae2
[38] use shared workflow to deploy to AWS (#40)
voj Aug 29, 2025
85fabb4
[47] upgrade axios (#49)
voj Sep 14, 2025
0fd7060
Bump version: 0.3.0 → 0.3.1
voj Sep 14, 2025
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
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.3.0
current_version = 0.3.1
commit = True
tag = False

Expand Down
70 changes: 7 additions & 63 deletions .github/workflows/deploy-to-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,69 +11,13 @@ on:

jobs:
call-test-workflow:
uses: GNS-Science/nshm-github-actions/.github/workflows/python-run-tests.yml@main
with:
operating-systems: "['ubuntu-latest']"
python-versions: "['3.10']"
uses: ./.github/workflows/dev.yml
secrets: inherit

deploy:
call-deploy-workflow:
needs: call-test-workflow
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
python-version: ['3.10']

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install and configure Poetry
uses: GNS-Science/install-poetry@main
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true

- name: upgrade NPM
run: npm install --location=global npm@latest

# - name: Verify NPM
# run: npm doctor

- name: Install Dependencies
run: npm install

- name: List packages
run: npm ls

- name: Serverless Doctor
run: npm run-script sls_doctor

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-southeast-2

- name: Serverless Deploy ....
env:
ENABLE_METRICS: 0
run: |
poetry self add poetry-plugin-export
if [[ "${{github.base_ref}}" == "main" || "${{github.ref}}" == 'refs/heads/main' ]]; then
STAGE=prod npm run-script deploy
else
STAGE=test npm run-script deploy
fi

uses: GNS-Science/nshm-github-actions/.github/workflows/deploy-to-aws.yml@main
with:
python-version: '3.10'
smoketest-query: "query {about, current_model_version}"
secrets: inherit
2 changes: 2 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allows us to call the workflow from another workflow
workflow_call:

jobs:
call-test-workflow:
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.3.1] - 2025-09-15

### Changed
- graphql-server pinned
- dev dependencies updated


## [0.3.0] - 2025-07-29

### Changed
Expand Down
2 changes: 1 addition & 1 deletion nshm_model_graphql_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = """GNS Science"""
__email__ = "nshm@gns.cri.nz"
__version__ = "0.3.0"
__version__ = "0.3.1"
Loading