Skip to content

Commit

Permalink
Use github action to install poetry (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins authored Nov 7, 2024
1 parent de57456 commit 498108c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
- name: Create Cache Hash
run: |
export HASH=$(sha256sum <<EOT | cut -c -16
${{ env.POETRY_VERSION }}
${{ env.MINIO_SERVER_DOWNLOAD_URL }}
EOT
)
Expand All @@ -46,21 +45,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: ${{ env.POETRY_VERSION }}

- name: Cache Installations
id: cache-installs
uses: actions/cache@v4
with:
path: ~/.local
key: install-${{ env.INSTALL_CACHE_HASH }}-2

- name: Install Poetry
if: steps.cache-installs.outputs.cache-hit != 'true'
run: |
curl -sSL https://install.python-poetry.org | python3 - --version ${{ env.POETRY_VERSION }}
- name: Test poetry run
run: poetry --version

- name: Install Minio Server
if: steps.cache-installs.outputs.cache-hit != 'true'
run: |
Expand Down
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ History

X.Y.Z (YYYY-MM-DD)
------------------
* Use github action to install poetry (:pr:`340`)
* Update readthedocs version (:pr:`339`)

0.2.22 (2024-11-07)
Expand Down

0 comments on commit 498108c

Please sign in to comment.