Skip to content

Commit

Permalink
add a debug step
Browse files Browse the repository at this point in the history
  • Loading branch information
bsweger committed Apr 9, 2024
1 parent f9bc1ea commit 7c4cd92
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 5 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/pulumi_preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,21 @@ jobs:
working-directory: ./src/hubverse_infrastructure
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

# - name: Setup Python 🐍
# uses: actions/setup-python@v5
# with:
# # No cache directive here b/c actions/setup-python doesn't
# # support PDM caching. There's a PDM setup action does
# # support dependency caching, but the way it handles
# # environments doesn't play nicely with the Pulumi action
# architecture: 'x64'

# - name: Install PDM
# run: brew install pdm

# - name: Install dependencies 📦️

- name: Set up PDM 🐍
id: setup_pdm
Expand All @@ -28,17 +42,35 @@ jobs:
uses: pdm-project/setup-pdm@v4
with:
cache: true

- name: Install dependencies 📦️
run: |
echo "installing project dependencies"
python -m venv .venv
source .venv/bin/activate
pdm install
echo "$PATH"
echo PATH=$PATH >> $GITHUB_ENV
- name: Configure AWS credentials 🔐
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::767397675902:role/hubverse-administration
aws-region: us-east-1

# - name: Debug 🐛
# run: |
# echo ${{ steps.setup_pdm.outputs.python-path }}
# echo ${{ steps.setup_pdm.outputs.pdm-bin }}
# pip list
# pdm list
# pdm venv list
# echo "$PATH"
# echo "$PYTHONPATH"
# which python
# env:
# PYTHONPATH: .venv/bin

- name: Previewing infrastructure 👀
uses: pulumi/actions@v5
with:
Expand All @@ -47,4 +79,3 @@ jobs:
comment-on-pr: true
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.BSWEGER_PULUMI_DEMO }}
PYTHONPATH: ${{ steps.setup_pdm.outputs.python-path }}
4 changes: 2 additions & 2 deletions .github/workflows/pulumi_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
working-directory: ./src/hubverse_infrastructure
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up PDM 🐍
id: setup_pdm
Expand Down Expand Up @@ -47,4 +47,4 @@ jobs:
comment-on-pr: true
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.BSWEGER_PULUMI_DEMO }}
PYTHONPATH: ${{ steps.setup_pdm.outputs.python-path }}
PYTHONPATH: ./.venv/bin
1 change: 0 additions & 1 deletion .github/workflows/run-code-checks.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: run-code-checks
run-name: ${{ github.action }} triggered by ${{ github.event_name }} from ${{ github.actor }}

on:
push:
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11.8

0 comments on commit 7c4cd92

Please sign in to comment.