Skip to content

Commit

Permalink
feat: by default use the latest poetry version (#62)
Browse files Browse the repository at this point in the history
* by default install the latest poetry version

* 'poetry-version' input is not required anymore

* added test install case for the 'latest' version

* move if expression above run statement
  • Loading branch information
mammo0 authored Feb 24, 2023
1 parent 8a269b6 commit 192395c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
poetry-version: ["1.0", "1.1.15", "1.2.2", "1.3.1"]
poetry-version: ["latest", "1.0", "1.1.15", "1.2.2", "1.3.1"]
os: [ubuntu-20.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
11 changes: 8 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ branding:
inputs:
poetry-version:
description: "The version of poetry to install"
required: true
default: "1.2.2"
required: false
default: "latest"
runs:
using: "composite"
steps:
- run: |
- if: ${{ inputs.poetry-version == 'latest' }}
run: |
pip install -U poetry
shell: bash
- if: ${{ inputs.poetry-version != 'latest' }}
run: |
pip install poetry==${{ inputs.poetry-version }}
shell: bash

0 comments on commit 192395c

Please sign in to comment.