Skip to content

Commit 0d3ac64

Browse files
authored
chore: use poetry 1.4.2 in the CI (#382)
This PR makes sure that we use poetry 1.4.2 in the CI.
1 parent 0b1344d commit 0d3ac64

File tree

2 files changed

+646
-615
lines changed

2 files changed

+646
-615
lines changed

.github/workflows/build-test-release.yaml

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ jobs:
7070

7171
run-unit-tests:
7272
runs-on: ubuntu-latest
73-
strategy:
74-
fail-fast: false
7573
steps:
7674
- uses: actions/checkout@v3
7775
with:
@@ -82,7 +80,7 @@ jobs:
8280
python-version: 3.7
8381
- name: Install dependencies
8482
run: |
85-
curl -sSL https://install.python-poetry.org | python3 -
83+
curl -sSL https://install.python-poetry.org | python3 - --version 1.4.2
8684
- name: Test with pytest
8785
run: |
8886
poetry install
@@ -106,7 +104,7 @@ jobs:
106104
python-version: 3.7
107105
- name: Install tools
108106
run: |
109-
curl -sSL https://install.python-poetry.org | python3 -
107+
curl -sSL https://install.python-poetry.org | python3 - --version 1.4.2
110108
- name: Build Package
111109
run: |
112110
poetry install
@@ -119,24 +117,24 @@ jobs:
119117
if: always()
120118

121119
prerequisites-ui-tests:
122-
runs-on: ubuntu-latest
123-
outputs:
124-
ta_example_version: ${{ steps.ta-example.outputs.version }}
125-
steps:
126-
- name: Fetch latest version of Splunk_TA example
127-
id: ta-example
128-
run: |
129-
ta_example_version=`basename $(curl -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -s https://api.github.com/repos/splunk/splunk-add-on-for-ucc-example/releases/latest | jq -r '.assets | last | .browser_download_url')`
130-
echo "version=$ta_example_version" >> $GITHUB_OUTPUT
131-
- name: Cache Splunk_TA example
132-
id: cache_ta
133-
uses: actions/cache@v3
134-
with:
135-
path: Splunk_TA*.spl
136-
key: ${{ steps.ta-example.outputs.version }}
137-
- name: Download Splunk_TA example
138-
if: steps.cache_ta.outputs.cache-hit != 'true'
139-
run: curl -s https://api.github.com/repos/splunk/splunk-add-on-for-ucc-example/releases/latest | jq -r '.assets | last | .browser_download_url' | wget -i -
120+
runs-on: ubuntu-latest
121+
outputs:
122+
ta_example_version: ${{ steps.ta-example.outputs.version }}
123+
steps:
124+
- name: Fetch latest version of Splunk_TA example
125+
id: ta-example
126+
run: |
127+
ta_example_version=`basename $(curl -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -s https://api.github.com/repos/splunk/splunk-add-on-for-ucc-example/releases/latest | jq -r '.assets | last | .browser_download_url')`
128+
echo "version=$ta_example_version" >> $GITHUB_OUTPUT
129+
- name: Cache Splunk_TA example
130+
id: cache_ta
131+
uses: actions/cache@v3
132+
with:
133+
path: Splunk_TA*.spl
134+
key: ${{ steps.ta-example.outputs.version }}
135+
- name: Download Splunk_TA example
136+
if: steps.cache_ta.outputs.cache-hit != 'true'
137+
run: curl -s https://api.github.com/repos/splunk/splunk-add-on-for-ucc-example/releases/latest | jq -r '.assets | last | .browser_download_url' | wget -i -
140138

141139
run-ui-tests:
142140
needs:
@@ -260,7 +258,7 @@ jobs:
260258
- uses: actions/setup-python@v4
261259
with:
262260
python-version: "3.7"
263-
- run: curl -sSL https://install.python-poetry.org | python3 -
261+
- run: curl -sSL https://install.python-poetry.org | python3 - --version 1.4.2
264262
- id: semantic
265263
uses: splunk/semantic-release-action@v1.3
266264
with:

0 commit comments

Comments
 (0)