Skip to content

Commit c13cd14

Browse files
authored
ci: error when venv is uploaded (#2138)
* ci: error when venv is uploaded * fix: venv created by uv not deleted
1 parent c1e3d3d commit c13cd14

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/pre-check-plugin.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ jobs:
7171
exit 1
7272
fi
7373
74+
- name: Check for Disallowed Virtualenv Directories
75+
run: |
76+
if find "${{ env.PLUGIN_PATH }}" -maxdepth 1 -type d \( -name ".venv*" -o -name "venv*" \) | grep -q .; then
77+
echo "!!! Please remove .venv or venv* directory in plugin path before submitting the PR"
78+
exit 1
79+
fi
80+
7481
- name: Check If Version Exists
7582
run: |
7683
# get version, author, name
@@ -120,6 +127,11 @@ jobs:
120127
fi
121128
cd -
122129
uv run python .scripts/validator/test-plugin-install.py -d ${{ env.PLUGIN_PATH }}
130+
131+
- name: Clean Venv Created by uv
132+
run: |
133+
cd ${{ env.PLUGIN_PATH }}
134+
rm -rf .venv
123135
124136
- name: Check Packaging
125137
run: |

0 commit comments

Comments
 (0)