Skip to content

Commit 1df0905

Browse files
authored
Merge pull request #46 from GNS-Science/deploy-test
Merge deploy-test into main
2 parents d3a2c29 + 0fd7060 commit 1df0905

File tree

9 files changed

+3551
-8024
lines changed

9 files changed

+3551
-8024
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.3.0
2+
current_version = 0.3.1
33
commit = True
44
tag = False
55

.github/workflows/deploy-to-aws.yaml

Lines changed: 7 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -11,69 +11,13 @@ on:
1111

1212
jobs:
1313
call-test-workflow:
14-
uses: GNS-Science/nshm-github-actions/.github/workflows/python-run-tests.yml@main
15-
with:
16-
operating-systems: "['ubuntu-latest']"
17-
python-versions: "['3.10']"
14+
uses: ./.github/workflows/dev.yml
1815
secrets: inherit
1916

20-
deploy:
17+
call-deploy-workflow:
2118
needs: call-test-workflow
22-
runs-on: ubuntu-latest
23-
strategy:
24-
matrix:
25-
node-version: [20]
26-
python-version: ['3.10']
27-
28-
steps:
29-
- uses: actions/checkout@v4
30-
- uses: actions/setup-python@v4
31-
with:
32-
python-version: ${{ matrix.python-version }}
33-
34-
- name: Install and configure Poetry
35-
uses: GNS-Science/install-poetry@main
36-
with:
37-
virtualenvs-create: true
38-
virtualenvs-in-project: true
39-
installer-parallel: true
40-
41-
- name: Use Node.js ${{ matrix.node-version }}
42-
uses: actions/setup-node@v4
43-
with:
44-
node-version: ${{ matrix.node-version }}
45-
check-latest: true
46-
47-
- name: upgrade NPM
48-
run: npm install --location=global npm@latest
49-
50-
# - name: Verify NPM
51-
# run: npm doctor
52-
53-
- name: Install Dependencies
54-
run: npm install
55-
56-
- name: List packages
57-
run: npm ls
58-
59-
- name: Serverless Doctor
60-
run: npm run-script sls_doctor
61-
62-
- name: Configure AWS Credentials
63-
uses: aws-actions/configure-aws-credentials@v4
64-
with:
65-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
66-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
67-
aws-region: ap-southeast-2
68-
69-
- name: Serverless Deploy ....
70-
env:
71-
ENABLE_METRICS: 0
72-
run: |
73-
poetry self add poetry-plugin-export
74-
if [[ "${{github.base_ref}}" == "main" || "${{github.ref}}" == 'refs/heads/main' ]]; then
75-
STAGE=prod npm run-script deploy
76-
else
77-
STAGE=test npm run-script deploy
78-
fi
79-
19+
uses: GNS-Science/nshm-github-actions/.github/workflows/deploy-to-aws.yml@main
20+
with:
21+
python-version: '3.10'
22+
smoketest-query: "query {about, current_model_version}"
23+
secrets: inherit

.github/workflows/dev.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88

99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
11+
# Allows us to call the workflow from another workflow
12+
workflow_call:
1113

1214
jobs:
1315
call-test-workflow:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.3.1] - 2025-09-15
4+
5+
### Changed
6+
- graphql-server pinned
7+
- dev dependencies updated
8+
9+
310
## [0.3.0] - 2025-07-29
411

512
### Changed

nshm_model_graphql_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__author__ = """GNS Science"""
44
__email__ = "[email protected]"
5-
__version__ = "0.3.0"
5+
__version__ = "0.3.1"

0 commit comments

Comments
 (0)