From 515fd44d1eac0a84199feba276e08797fd10fb1e Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Mon, 18 Dec 2023 11:08:13 +0100 Subject: [PATCH 1/6] Use latest SemVer PR --- .github/workflows/lint-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index d57813e..295d4f8 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -10,6 +10,6 @@ jobs: main: runs-on: ubuntu-latest steps: - - uses: amannn/action-semantic-pull-request@v3.4.0 + - uses: amannn/action-semantic-pull-request@v5.4.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From f6063f716c94432bccfc7fb93ed89df32c960af9 Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Mon, 18 Dec 2023 11:08:34 +0100 Subject: [PATCH 2/6] Drop EOL Python 3.7. Use more modern Poetry versions in tests --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 310330d..9580f8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,13 +10,13 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] - poetry-version: ["latest", "1.0", "1.1.15", "1.2.2", "1.3.1"] - os: [ubuntu-20.04, macos-latest, windows-latest] + python-version: ["3.8", "3.9", "3.10", "3.11"] + poetry-version: ["latest", "1.2.2", "1.3.2", "1.4.2", "1.5.1", "1.6.1"] + os: [ubuntu-22.04, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Run image From 7f57d7950295d6d5b8c999de5ba1f628fdf61b6f Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Mon, 18 Dec 2023 11:24:31 +0100 Subject: [PATCH 3/6] Update examples --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 02c9902..afaf15b 100644 --- a/README.md +++ b/README.md @@ -29,12 +29,12 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] - poetry-version: ["1.0", "1.1.15"] - os: [ubuntu-18.04, macos-latest, windows-latest] + python-version: ["3.8", "3.9", "3.10", "3.11"] + poetry-version: ["1.2.2", "1.7.1"] + os: [ubuntu-22.04, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -80,7 +80,7 @@ jobs: ci: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Python uses: actions/setup-python@v4 # see details (matrix, python-version, python-version-file, etc.) From 9352edb95eab4a9a2a9ed1934a529fdd012d8e13 Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Mon, 18 Dec 2023 11:24:43 +0100 Subject: [PATCH 4/6] Add ability to install plugins and install export plugin by default --- action.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/action.yml b/action.yml index cdf9323..55036e6 100644 --- a/action.yml +++ b/action.yml @@ -9,6 +9,10 @@ inputs: description: "The version of poetry to install" required: false default: "latest" + poetry-plugins: + description: "The whitespace/newline-separated list of poetry plugins to install." + required: false + default: "poetry-plugin-export" runs: using: "composite" steps: @@ -20,3 +24,9 @@ runs: run: | pip install poetry==${{ inputs.poetry-version }} shell: bash + - run: | + ALL_PLUGINS=$(echo "${{ inputs.poetry-plugins }}") + for PLUGIN in $ALL_PLUGINS; do + poetry self add $PLUGIN + done + shell: bash From 3f63f36adba47507a7b39ac6435919788e5726d3 Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Tue, 19 Dec 2023 15:33:27 +0100 Subject: [PATCH 5/6] Do not install any plugins by default --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 55036e6..6488b0d 100644 --- a/action.yml +++ b/action.yml @@ -12,7 +12,7 @@ inputs: poetry-plugins: description: "The whitespace/newline-separated list of poetry plugins to install." required: false - default: "poetry-plugin-export" + default: "" runs: using: "composite" steps: From 882bf33bfee364be132c57536802e34bc9809086 Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Tue, 19 Dec 2023 15:35:28 +0100 Subject: [PATCH 6/6] Only run steps if some plugins are specified --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 6488b0d..2d63212 100644 --- a/action.yml +++ b/action.yml @@ -24,7 +24,8 @@ runs: run: | pip install poetry==${{ inputs.poetry-version }} shell: bash - - run: | + - if: ${{ inputs.poetry-plugins != '' }} + run: | ALL_PLUGINS=$(echo "${{ inputs.poetry-plugins }}") for PLUGIN in $ALL_PLUGINS; do poetry self add $PLUGIN