File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 26
26
steps :
27
27
- uses : actions/checkout@v3
28
28
with :
29
+ # fetch-depth ensures all tags are present on the repo so we can run update tests successfully
30
+ fetch-depth : 0
29
31
submodules : " recursive"
30
32
- name : Build
31
33
id : build
49
51
sudo pip install GitPython &&\
50
52
# Start postgres
51
53
sudo su postgres -c "PG_VERSION=$PG_VERSION RUN_TESTS=0 ./ci/scripts/run-tests-linux.sh" && \
52
- sudo su -c "PG_VERSION=$PG_VERSION python3 ./scripts/test_updates.py -U postgres"
54
+ sudo su -c "PG_VERSION=$PG_VERSION python3 ./scripts/test_updates.py -U postgres" &&\
55
+ echo "Done with updates"
56
+
53
57
env :
54
58
PG_VERSION : ${{ matrix.postgres }}
55
59
if : ${{ startsWith(matrix.os, 'ubuntu') }}
Original file line number Diff line number Diff line change @@ -64,14 +64,15 @@ def incompatible_version(pg_version, version_tag):
64
64
to_tag = args .to_tag
65
65
if from_tag and to_tag :
66
66
update_from_tag (from_tag , to_tag )
67
+ exit (0 )
67
68
68
69
if from_tag or to_tag :
69
70
print ("Must specify both or neither from_tag and to_tag" )
70
71
exit (1 )
71
72
72
73
# test updates from all tags
73
74
from_tags = [update_fname .split ("--" )[0 ] for update_fname in os .listdir ("sql/updates" )]
74
- latest_version = "0.0.5 "
75
+ latest_version = "main "
75
76
76
77
pg_version = None if not 'PG_VERSION' in os .environ else os .environ ['PG_VERSION' ]
77
78
for from_tag in from_tags :
You can’t perform that action at this time.
0 commit comments