Skip to content

Commit

Permalink
try to enable os-version-py
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenli2000 committed Dec 19, 2024
1 parent b20d6a0 commit 7a89b49
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ parameters:
poetry-version:
type: string
default: "1.8.3"
os-poetry-version:
type: string
default: '{"bionic": "1.1.14", "focal": "1.8.3"}'


executors:
Expand Down Expand Up @@ -35,6 +38,9 @@ workflows:
matrix:
parameters:
os: [bionic, focal]
poetry-version:
- "1.1.14"
- << pipeline.parameters.poetry-version >>
- test-installation-deb:
requires:
- build-deb
Expand Down Expand Up @@ -121,9 +127,12 @@ jobs:
parameters:
os:
type: executor
poetry-version:
type: string
executor: << parameters.os >>
steps:
- install-poetry
- install-poetry:
poetry-version: << parameters.poetry-version >>
- checkout
- run:
working_directory: ~/project/
Expand Down Expand Up @@ -259,10 +268,14 @@ jobs:

commands:
install-poetry:
parameters:
version:
type: string
default: << pipeline.parameters.poetry-version >>
steps:
- run: >
curl -sSL https://install.python-poetry.org
| python3 - --version << pipeline.parameters.poetry-version >>
| python3 - --version << parameters.version >>
# Add to the PATH
- run: echo 'export PATH=$HOME/.local/bin:$PATH' >> $BASH_ENV
assert-core-container-running:
Expand Down

0 comments on commit 7a89b49

Please sign in to comment.