Skip to content

Commit 62506bc

Browse files
ryan-williamsclaude
andcommitted
Install project-specific deps from working-directory
When `deps-directory` differs from `working-directory`, also install from `working-directory/requirements.txt` if present. Lets projects declare their own extra deps (e.g. `pulumi-gcp`) alongside shared ones. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3d6273a commit 62506bc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/pulumi.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,20 @@ jobs:
100100
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
101101
102102
- name: Install dependencies
103+
env:
104+
DEPS_DIR: ${{ inputs.deps-directory || inputs.working-directory }}
105+
WORK_DIR: ${{ inputs.working-directory }}
103106
working-directory: ${{ inputs.deps-directory || inputs.working-directory }}
104107
run: |
105108
if [ -f pyproject.toml ]; then
106109
uv pip install --system -e .
107110
elif [ -f requirements.txt ]; then
108111
uv pip install --system -r requirements.txt
109112
fi
113+
# Install project-specific deps if working-directory differs
114+
if [ "$DEPS_DIR" != "$WORK_DIR" ] && [ -f "$GITHUB_WORKSPACE/$WORK_DIR/requirements.txt" ]; then
115+
uv pip install --system -r "$GITHUB_WORKSPACE/$WORK_DIR/requirements.txt"
116+
fi
110117
111118
- name: Cache Pulumi binary
112119
id: cache-pulumi

0 commit comments

Comments
 (0)