Skip to content

Commit

Permalink
ci: PLT-628: Migrate to poetry2
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabelonogov committed Jan 14, 2025
1 parent 813100e commit b4a0a9e
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ jobs:
run: yarn version:libs

- name: "Install poetry"
run: pipx install poetry
env:
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
run: pipx install "poetry==${POETRY_VERSION}"

- name: "Set up Python"
id: setup_python
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
BRANCH_OVERRIDE: ${{ inputs.branch_name }}
VERSION_OVERRIDE: ${{ steps.version.outputs.build_version }}
BRANCH_OVERRIDE=${{ inputs.branch_name }}
VERSION_OVERRIDE=${{ steps.version.outputs.build_version }}
POETRY_VERSION=${{ vars.POETRY_VERSION }}
- name: Create Docker image tag Check
uses: actions/github-script@v7
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/follow-merge-upstream-repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ jobs:

- name: "Install poetry"
if: steps.details.outputs.poetry
run: pipx install poetry
env:
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
run: pipx install "poetry==${POETRY_VERSION}"

- name: "Set up Python"
id: setup_python
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ jobs:
activate-environment: test-environment

- name: "Install poetry"
run: pipx install poetry
env:
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
run: pipx install "poetry==${POETRY_VERSION}"

- name: "Set up Python"
id: setup_python
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test_migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
ref: ${{ inputs.ref }}

- name: "Install poetry"
run: pipx install poetry
env:
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
run: pipx install "poetry==${POETRY_VERSION}"

- name: "Set up Python"
id: setup_python
Expand Down Expand Up @@ -98,7 +100,9 @@ jobs:
fetch-depth: 0

- name: "Install poetry"
run: pipx install poetry
env:
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
run: pipx install "poetry==${POETRY_VERSION}"

- name: "Set up Python"
id: setup_python
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ jobs:
ref: ${{ inputs.head_sha }}

- name: "Install poetry"
run: pipx install poetry
env:
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
run: pipx install "poetry==${POETRY_VERSION}"

- name: "Set up Python ${{ matrix.python-version }}"
id: setup_python
Expand Down Expand Up @@ -131,7 +133,9 @@ jobs:
ref: ${{ inputs.head_sha }}

- name: "Install poetry"
run: pipx install poetry
env:
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
run: pipx install "poetry==${POETRY_VERSION}"

- name: "Set up Python ${{ matrix.python-version }}"
id: setup_python
Expand Down Expand Up @@ -208,7 +212,9 @@ jobs:
ref: ${{ inputs.head_sha }}

- name: "Install poetry"
run: pipx install "poetry<2.0.0"
env:
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
run: pipx install "poetry==${POETRY_VERSION}"

- name: "Set up Python ${{ matrix.python-version }}"
id: setup_python
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/update_pip_dependency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ jobs:
git config --global user.email 'robot-ci-heartex@users.noreply.github.com'
- name: "Install poetry"
run: pipx install poetry
env:
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
run: pipx install "poetry==${POETRY_VERSION}"

- name: "Set up Python"
id: setup_python
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1
ARG NODE_VERSION=18
ARG PYTHON_VERSION=3.12
ARG POETRY_VERSION=1.8.4
ARG POETRY_VERSION=2.0.1
ARG VERSION_OVERRIDE
ARG BRANCH_OVERRIDE

Expand Down

0 comments on commit b4a0a9e

Please sign in to comment.