File tree 9 files changed +190
-84
lines changed
9 files changed +190
-84
lines changed Original file line number Diff line number Diff line change
1
+ name : DB migration Test
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ workflow_dispatch :
9
+ inputs :
10
+ prev_release_tag :
11
+ description : ' OasisPlatform tag [semvar]'
12
+ required : false
13
+
14
+ workflow_call :
15
+ inputs :
16
+ prev_release_tag :
17
+ description : ' Platform tag to set the DB migration from'
18
+ required : false
19
+ type : string
20
+ platform_branch :
21
+ description : " Platform branch to migrate to (remote trigger) [git ref]"
22
+ required : True
23
+ type : string
24
+
25
+ jobs :
26
+ DB_migrate :
27
+ runs-on : ubuntu-22.04
28
+ env :
29
+ PLAT_BRANCH : ${{ github.ref }}
30
+ PREV_RELEASE_TAG : ${{ inputs.prev_release_tag }}
31
+
32
+ steps :
33
+ - name : Branch selection (remote trigger)
34
+ if : inputs.platform_branch != ''
35
+ run : echo "PLAT_BRANCH=${{ inputs.platform_branch }}" >> $GITHUB_ENV
36
+
37
+ - name : Checkout
38
+ uses : actions/checkout@v3
39
+ with :
40
+ repository : OasisLMF/OasisPlatform
41
+ ref : ${{ env.PLAT_BRANCH }}
42
+ fetch-depth : 0
43
+
44
+ - name : Find 'prev_release_tag'
45
+ if : inputs.prev_release_tag == ''
46
+ run : |
47
+ tag=$( ./scripts/find_release.sh -t 1)
48
+ echo "PREV_RELEASE_TAG=$tag" >> $GITHUB_ENV
49
+ - name : Create DB to migrate from
50
+ run : |
51
+ ./scripts/create-db-sqlite3.sh ${{ env.PREV_RELEASE_TAG }}
52
+ - name : Set up Python 3.10
53
+ uses : actions/setup-python@v4
54
+ with :
55
+ python-version : ' 3.10'
56
+ - run : pip install -r requirements-server.txt
57
+
58
+ - name : Run Migration
59
+ run : |
60
+ python ./manage.py migrate
Original file line number Diff line number Diff line change 1
1
OasisPlatform Changelog
2
2
=======================
3
3
4
+ `1.28.10 `_
5
+ ---------
6
+ * [#1114](https://github.com/OasisLMF/OasisPlatform/pull/1114) - Release 1.28.9
7
+ * [#1141](https://github.com/OasisLMF/OasisPlatform/pull/1141) - Add setttings from platform v2 for running the v1.28.x server on azure cloud
8
+ * [#1146](https://github.com/OasisLMF/OasisPlatform/pull/1146) - Fix CVE issues in release 1.28.10
9
+ .. _`1.28.10` : https://github.com/OasisLMF/OasisPlatform/compare/1.28.9...1.28.10
10
+
4
11
`1.28.9 `_
5
12
---------
6
13
* [#1117](https://github.com/OasisLMF/OasisPlatform/pull/1117) - Updated Package Requirements
Original file line number Diff line number Diff line change 1
- FROM python:3.8
1
+ FROM python:3.10
2
2
3
3
RUN apt-get update && apt-get install -y --no-install-recommends git vim libspatialindex-dev && rm -rf /var/lib/apt/lists/*
4
4
RUN adduser --home /home/worker --shell /bin/bash --disabled-password --gecos "" worker
Original file line number Diff line number Diff line change 1
- 1.28.9
1
+ 1.28.10
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ cryptography==42.0.4
79
79
# service-identity
80
80
daphne==4.0.0
81
81
# via -r requirements-server.in
82
- django==3.2.23
82
+ django==3.2.25
83
83
# via
84
84
# -r requirements-server.in
85
85
# channels
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ argparsetree==0.0.6
12
12
# via oasislmf
13
13
attrs==22.2.0
14
14
# via
15
- # fiona
16
15
# jsonschema
17
16
# pytest
18
17
azure-core==1.26.3
@@ -33,7 +32,7 @@ celery==5.2.7
33
32
# via -r requirements-worker.in
34
33
certifi==2023.7.22
35
34
# via
36
- # fiona
35
+ # pyogrio
37
36
# pyproj
38
37
# requests
39
38
cffi==1.15.1
@@ -52,18 +51,12 @@ click==8.1.3
52
51
# click-didyoumean
53
52
# click-plugins
54
53
# click-repl
55
- # cligj
56
- # fiona
57
54
click-didyoumean==0.3.0
58
55
# via celery
59
56
click-plugins==1.1.1
60
- # via
61
- # celery
62
- # fiona
57
+ # via celery
63
58
click-repl==0.2.0
64
59
# via celery
65
- cligj==0.7.2
66
- # via fiona
67
60
configparser==5.3.0
68
61
# via -r requirements-worker.in
69
62
cramjam==2.6.2
@@ -76,15 +69,11 @@ fasteners==0.18
76
69
# via -r requirements-worker.in
77
70
fastparquet==2023.2.0
78
71
# via oasislmf
79
- fiona==1.9.6
80
- # via
81
- # geopandas
82
- # oasislmf
83
72
forex-python==1.8
84
73
# via oasislmf
85
74
fsspec==2023.3.0
86
75
# via fastparquet
87
- geopandas==0.12.2
76
+ geopandas==1.0.1
88
77
# via oasislmf
89
78
greenlet==2.0.2
90
79
# via sqlalchemy
@@ -115,20 +104,22 @@ numba==0.56.4
115
104
# -r requirements-worker.in
116
105
# oasislmf
117
106
# ods-tools
118
- numexpr==2.8.4
107
+ numexpr==2.10.0
119
108
# via oasislmf
120
109
numpy==1.22.4
121
110
# via
122
111
# fastparquet
112
+ # geopandas
123
113
# numba
124
114
# numexpr
125
115
# oasislmf
126
116
# pandas
127
117
# pyarrow
118
+ # pyogrio
128
119
# scikit-learn
129
120
# scipy
130
121
# shapely
131
- oasislmf[extra]==1.28.9
122
+ oasislmf[extra]==1.28.10
132
123
# via -r requirements-worker.in
133
124
ods-tools==3.1.5
134
125
# via oasislmf
@@ -137,6 +128,7 @@ packaging==23.0
137
128
# fastparquet
138
129
# geopandas
139
130
# ods-tools
131
+ # pyogrio
140
132
# pytest
141
133
pandas==1.5.3
142
134
# via
@@ -158,6 +150,8 @@ pycparser==2.21
158
150
# via cffi
159
151
pymysql==1.1.1
160
152
# via -r requirements-worker.in
153
+ pyogrio==0.10.0
154
+ # via geopandas
161
155
pyproj==3.4.1
162
156
# via geopandas
163
157
pyrsistent==0.19.3
@@ -204,7 +198,6 @@ six==1.16.0
204
198
# anytree
205
199
# azure-core
206
200
# click-repl
207
- # fiona
208
201
# isodate
209
202
# pathlib2
210
203
# python-dateutil
You can’t perform that action at this time.
0 commit comments