From 2035619062a678a33f1140c2ee8c741c4f5ca51f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Lilleb=C3=B8=20Gundersen?= Date: Fri, 4 Aug 2023 20:04:49 +0200 Subject: [PATCH 1/4] docs: Update example Poetry version --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b8a0d9be..268cfec6 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ If you want to set Poetry config settings, or install a specific version, you ca - name: Install and configure Poetry uses: snok/install-poetry@v1 with: - version: 1.3.2 + version: 1.5.1 virtualenvs-create: true virtualenvs-in-project: false virtualenvs-path: ~/my-custom-path @@ -31,7 +31,7 @@ If you want to set Poetry config settings, or install a specific version, you ca If you need to pass extra arguments to the installer script, you can specify these with `installation-arguments`. -The action is fully tested for MacOS and Ubuntu runners, on Poetry versions >= 1.1. If you're using this with Windows, see the [Running on Windows](#running-on-windows) section. +The action is fully tested for macOS and Ubuntu runners, on Poetry versions >= 1.1. If you're using this with Windows, see the [Running on Windows](#running-on-windows) section. ## Defaults @@ -422,7 +422,7 @@ There are two other relevant scenarios: If you're using the default settings, the venv location changes from `.venv` to using `{cache-dir}/virtualenvs`. You can also change the path to whatever you'd like. Generally though, this can make things a little tricky, because the - directory will be vary depending on the OS, making it harder to write OS agnostic workflows. + directory will be vary depending on the OS, making it harder to write OS-agnostic workflows. A solution to this is to bypass this issue completely by taking advantage of Poetry's `poetry run` command. From 8e491e2115028bfb52bb952a7fa1734eb33c046b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Lilleb=C3=B8=20Gundersen?= Date: Fri, 4 Aug 2023 20:05:02 +0200 Subject: [PATCH 2/4] chore: Update pre-commit config --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3007c18a..b02deb57 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: mixed-line-ending - repo: https://github.com/sirosen/check-jsonschema - rev: 0.21.0 + rev: 0.23.3 hooks: - id: check-github-actions - id: check-github-workflows From 8976fd314a371cdc2b82dd095083cb2839b453d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Lilleb=C3=B8=20Gundersen?= Date: Fri, 4 Aug 2023 20:06:38 +0200 Subject: [PATCH 3/4] tests: Update action minor versions --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b6635f1..67597bb3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -105,5 +105,5 @@ jobs: runs-on: ubuntu-latest steps: - uses: snok/install-poetry@v1 - - uses: snok/install-poetry@v1.1 - uses: snok/install-poetry@v1.2 + - uses: snok/install-poetry@v1.3 From 0677e9afa216f5a810c1ca89dfb516d2e55b6298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Lilleb=C3=B8=20Gundersen?= Date: Fri, 4 Aug 2023 20:08:27 +0200 Subject: [PATCH 4/4] tests: Update versions --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 67597bb3..f9c4a2ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: matrix: os: [ ubuntu-latest, macos-latest, windows-latest ] python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ] - poetry-version: [ "1.1.15", "1.2.2", "1.3.2" ] + poetry-version: [ "1.1.15", "1.2.2", "1.3.2", "1.4.2", "1.5.1" ] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -50,14 +50,14 @@ jobs: python-version: "${{ matrix.python-version }}" - uses: ./ with: - version: 1.3.2 + version: 1.5.1 virtualenvs-create: false virtualenvs-in-project: true virtualenvs-path: ~/.cache/test installer-parallel: false - run: | source .github/scripts/assert.sh - assert_in "1.3.2" "$(poetry --version)" + assert_in "1.5.1" "$(poetry --version)" assert_in "false" "$(poetry config virtualenvs.create)" assert_in "true" "$(poetry config virtualenvs.in-project)" assert_in "test" "$(poetry config virtualenvs.path)"