Skip to content

Commit

Permalink
Use github action to install poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Jan 24, 2025
1 parent 771e7fd commit 5bdebf2
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

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

- name: Install latest setuptools, wheel, pip
run: python3 -m pip install -U pip setuptools wheel

- 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: poetry --version
uses: abatilo/actions-poetry@v3
with:
poetry-version: ${{ env.POETRY_VERSION }}

- name: Checkout source
uses: actions/checkout@v2
Expand Down

0 comments on commit 5bdebf2

Please sign in to comment.