Skip to content

Commit

Permalink
leverage snok/install-poetry@v1
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyParkerJ committed Oct 5, 2024
1 parent 551ef7c commit 24e2e85
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/deploy-to-lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,25 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Set up Poetry
run: |
export POETRY_HOME=/opt/poetry
python3 -m venv $POETRY_HOME
$POETRY_HOME/bin/pip install poetry==1.2.0
$POETRY_HOME/bin/poetry --version
# - name: Set up Poetry
# run: |
# export POETRY_HOME=/opt/poetry
# python3 -m venv $POETRY_HOME
# $POETRY_HOME/bin/pip install poetry==1.2.0
# $POETRY_HOME/bin/poetry --version
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: .venv
installer-parallel: true
- name: Build Project
run: |
$POETRY_HOME/bin/poetry install --only main --sync
$POETRY_HOME/bin/poetry shell
$POETRY_HOME/bin/poetry build
$POETRY_HOME/bin/poetry run pip install --upgrade -t package dist/*.whl
poetry install --only main --sync --no-interaction
poetry shell
poetry build
poetry run pip install --upgrade -t package dist/*.whl
cd package ; zip -r ../artifact.zip . -x '*.pyc'
# mkdir -p dist/lambda-package
Expand Down

0 comments on commit 24e2e85

Please sign in to comment.