27
27
run : poetry install --no-interaction --all-extras
28
28
- name : run pre-commit
29
29
run : poetry run pre-commit run --all-files --show-diff-on-failure
30
+
30
31
packaging :
31
32
runs-on : ubuntu-latest
32
33
steps :
37
38
run : poetry install --no-interaction --all-extras
38
39
- name : build package
39
40
run : poetry build
41
+
40
42
documentation :
41
43
runs-on : ubuntu-latest
42
44
steps :
47
49
run : poetry install --no-interaction --all-extras
48
50
- name : build documentation
49
51
run : poetry run make html --directory docs
52
+
50
53
unit-tests :
51
54
runs-on : ubuntu-latest
52
55
strategy :
69
72
run : poetry run tox -e py
70
73
- name : run python test report
71
74
run : poetry run tox -e report
75
+
72
76
docker-build :
73
77
runs-on : ubuntu-latest
74
78
steps :
78
82
uses : docker/build-push-action@v5
79
83
with :
80
84
context : .
85
+
81
86
integration-tests :
82
87
needs :
83
88
- linting
@@ -112,7 +117,10 @@ jobs:
112
117
role-session-name : GHA-${{ github.repository_owner }}-${{ github.event.repository.name }}-${{ github.run_id }}
113
118
role-duration-seconds : ${{ env.AWS_ROLE_DURATION }}
114
119
- name : run tests
115
- run : AWS_DEFAULT_REGION=eu-west-1 poetry run behave integration-tests/features --junit --junit-directory build/behave
120
+ run : poetry run behave integration-tests/features --junit --junit-directory build/behave
121
+ env :
122
+ AWS_DEFAULT_REGION : eu-west-1
123
+
116
124
docker-build-push :
117
125
needs :
118
126
- integration-tests
@@ -136,6 +144,7 @@ jobs:
136
144
push : true
137
145
tags : sceptreorg/sceptre:edge
138
146
labels : ${{ steps.meta.outputs.labels }}
147
+
139
148
docker-build-release :
140
149
if : ${{ github.ref_type == 'tag' }}
141
150
runs-on : ubuntu-latest
@@ -164,6 +173,7 @@ jobs:
164
173
push : true
165
174
tags : sceptreorg/sceptre:${{ steps.meta.outputs.tags }}
166
175
labels : ${{ steps.meta.outputs.labels }}
176
+
167
177
pypi-release :
168
178
if : ${{ github.ref_type == 'tag' }}
169
179
runs-on : ubuntu-latest
0 commit comments