Skip to content

Commit 9be1e8b

Browse files
authored
Merge pull request #19 from NHSDigital/mm-mesh-1478-mesh-code-splitting
mesh-1478: use poetry 1.5.1
2 parents 51bef49 + 37335c9 commit 9be1e8b

File tree

4 files changed

+41
-22
lines changed

4 files changed

+41
-22
lines changed

.github/workflows/merge-develop.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ jobs:
2020
with:
2121
python-version: "3.8"
2222

23-
- name: install poetry
24-
run: make install-poetry
23+
- name: setup poetry
24+
uses: abatilo/actions-poetry@v2
25+
with:
26+
poetry-version: 1.5.1
27+
28+
- name: add poetry plugins
29+
run: |
30+
poetry self add "poetry-dynamic-versioning[plugin]"
2531
2632
- name: cache virtualenv
2733
uses: actions/cache@v3
@@ -51,14 +57,14 @@ jobs:
5157
thresholdAll: 0.54
5258

5359
- name: setup java
54-
if: success() || failure()
60+
if: github.actor!= 'dependabot[bot]' && (success() || failure())
5561
uses: actions/setup-java@v3
5662
with:
5763
distribution: "corretto"
5864
java-version: "17"
5965

6066
- name: provision sonar-scanner
61-
if: success() || failure()
67+
if: github.actor!= 'dependabot[bot]' && (success() || failure())
6268
run: |
6369
export SONAR_VERSION="4.7.0.2747"
6470
wget -q "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_VERSION}.zip" -O sonar-scanner.zip
@@ -67,7 +73,7 @@ jobs:
6773
scripts/sonar_tests.py
6874
6975
- name: run sonar scan
70-
if: success() || failure()
76+
if: github.actor!= 'dependabot[bot]' && (success() || failure())
7177
run: |
7278
PATH="$PWD/sonar-scanner/bin:$PATH"
7379
sonar-scanner
@@ -89,7 +95,7 @@ jobs:
8995

9096
publish:
9197
runs-on: ubuntu-latest
92-
if: github.repository == 'NHSDigital/nhs-aws-helpers' && !contains(github.event.head_commit.message, 'tag release version:')
98+
if: github.repository == 'NHSDigital/nhs-aws-helpers' && github.actor!= 'dependabot[bot]' && !contains(github.event.head_commit.message, 'tag release version:')
9399
steps:
94100
- name: checkout
95101
uses: actions/checkout@v3
@@ -106,8 +112,14 @@ jobs:
106112
with:
107113
python-version: "3.8"
108114

109-
- name: install poetry
110-
run: make install-poetry
115+
- name: setup poetry
116+
uses: abatilo/actions-poetry@v2
117+
with:
118+
poetry-version: 1.5.1
119+
120+
- name: add poetry plugins
121+
run: |
122+
poetry self add "poetry-dynamic-versioning[plugin]"
111123
112124
- name: poetry build
113125
run: |

.github/workflows/pull-request.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,14 @@ jobs:
9797
with:
9898
python-version: "3.8"
9999

100-
- name: install poetry
101-
run: make install-poetry
100+
- name: setup poetry
101+
uses: abatilo/actions-poetry@v2
102+
with:
103+
poetry-version: 1.5.1
104+
105+
- name: add poetry plugins
106+
run: |
107+
poetry self add "poetry-dynamic-versioning[plugin]"
102108
103109
- name: cache virtualenv
104110
uses: actions/cache@v3
@@ -131,14 +137,14 @@ jobs:
131137
thresholdAll: 0.54
132138

133139
- name: setup java
134-
if: success() || failure()
140+
if: github.actor!= 'dependabot[bot]' && (success() || failure())
135141
uses: actions/setup-java@v3
136142
with:
137143
distribution: "corretto"
138144
java-version: "17"
139145

140146
- name: provision sonar-scanner
141-
if: success() || failure()
147+
if: github.actor!= 'dependabot[bot]' && (success() || failure())
142148
run: |
143149
export SONAR_VERSION="4.7.0.2747"
144150
wget -q "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_VERSION}.zip" -O sonar-scanner.zip
@@ -147,7 +153,7 @@ jobs:
147153
scripts/sonar_tests.py
148154
149155
# - name: run sonar scan
150-
# if: success() || failure()
156+
# if: github.actor!= 'dependabot[bot]' && (success() || failure())
151157
# run: |
152158
# PATH="$PWD/sonar-scanner/bin:$PATH"
153159
# if [[ "${{ github.event_name }}" == "pull_request" ]]; then
@@ -162,7 +168,7 @@ jobs:
162168

163169

164170
- name: archive reports
165-
if: success() || failure()
171+
if: github.actor!= 'dependabot[bot]' && (success() || failure())
166172
uses: actions/upload-artifact@v3
167173
with:
168174
name: reports
@@ -209,8 +215,14 @@ jobs:
209215
with:
210216
python-version: "3.8"
211217

212-
- name: install poetry
213-
run: make install-poetry
218+
- name: setup poetry
219+
uses: abatilo/actions-poetry@v2
220+
with:
221+
poetry-version: 1.5.1
222+
223+
- name: add poetry plugins
224+
run: |
225+
poetry self add "poetry-dynamic-versioning[plugin]"
214226
215227
- name: cache virtualenv
216228
uses: actions/cache@v3

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
poetry 1.3.2
1+
poetry 1.5.1
22
python 3.8.12 3.9.12 3.10.12

Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ install:
4747
install-ci:
4848
poetry install --without local --sync
4949

50-
install-poetry:
51-
python3 -m pip install --user --upgrade pip && \
52-
python3 -m pip install --user poetry==1.3.2 && \
53-
poetry self add "poetry-dynamic-versioning[plugin]"
54-
5550
update:
5651
poetry update
5752

0 commit comments

Comments
 (0)