Skip to content

Commit

Permalink
Add extra poetry shell command to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
san99tiago committed Sep 12, 2023
1 parent 373d2ef commit 0d763a6
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,20 @@ jobs:
- run: echo "Job running on a ${{ runner.os }} server hosted by GitHub."
- run: echo "Branch name is ${{ github.ref }} and repository is ${{ github.repository }}."

- name: Install poetry
run: pipx install poetry

- uses: actions/setup-python@v4
with:
python-version: 3.11
cache: poetry

- name: Install Python dependencies
run: poetry install
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Install Poetry dependencies
run: poetry install --no-interaction

- name: Set up NodeJs
uses: actions/setup-node@v3
Expand Down Expand Up @@ -63,7 +67,7 @@ jobs:
- name: Synth CDK to CloudFormation Template
run: |
poetry shell
source .venv/bin/activate
pip list
cdk synth
Expand Down

0 comments on commit 0d763a6

Please sign in to comment.