Skip to content

Commit cc0267b

Browse files
authored
ci: Centralised Poetry install (#6039)
1 parent 79b7cbf commit cc0267b

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/api-pull-request.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,15 @@ jobs:
4444
- name: Cloning repo
4545
uses: actions/checkout@v4
4646

47-
- name: Install poetry
48-
run: pipx install poetry
47+
- name: Install Poetry
48+
run: make install-poetry
4949

5050
- uses: actions/setup-python@v5
5151
with:
5252
python-version: ${{ matrix.python-version }}
53-
cache: 'poetry'
53+
cache: poetry
5454

5555
- name: Install Dependencies
56-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
5756
run: make install-packages
5857

5958
- name: Create analytics database

.github/workflows/api-run-makefile-target.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,19 @@ defaults:
2727
working-directory: api
2828

2929
jobs:
30-
add-sdk-version:
30+
run-makefile-target:
3131
runs-on: depot-ubuntu-latest
3232

3333
steps:
3434
- uses: actions/checkout@v4
3535

36+
- name: Install Poetry
37+
run: make install-poetry
38+
3639
- uses: actions/setup-python@v5
3740
with:
3841
python-version: 3.11
39-
cache: "poetry"
42+
cache: poetry
4043

4144
- name: Install Dependencies
4245
run: make install-packages

.github/workflows/api-tests-with-private-packages.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ jobs:
3030
- name: Cloning repo
3131
uses: actions/checkout@v4
3232

33-
- name: Install poetry
34-
run: pipx install poetry
33+
- name: Install Poetry
34+
run: make install-poetry
35+
3536
- uses: actions/setup-python@v5
3637
with:
3738
python-version: '3.12'
38-
cache: 'poetry'
39+
cache: poetry
3940

4041
- name: Install SAML Dependencies
4142
run: sudo apt-get install -y xmlsec1
4243

4344
- name: Install packages and Tests
44-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
4545
shell: bash
4646
run: |
4747
echo "https://${{ secrets.GH_PRIVATE_ACCESS_TOKEN }}:@github.com" > ${HOME}/.git-credentials

0 commit comments

Comments
 (0)