Skip to content

Commit e3ec938

Browse files
fix: clean up baipp artifacts between builds
Add cleanup step between vcs-versioning and setuptools-scm builds to remove the /tmp/baipp/dist/out directory if it exists. This directory is left over from baipp's unpack testing and can interfere with subsequent builds. The step logs a warning if the directory is found before removing it.
1 parent b060b51 commit e3ec938

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/python-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ jobs:
3737
path: nextgen/vcs-versioning
3838
upload-name-suffix: -vcs-versioning
3939

40+
- name: Clean up baipp artifacts between builds
41+
run: |
42+
if [ -d "/tmp/baipp/dist/out" ]; then
43+
echo "::warning::Found leftover /tmp/baipp/dist/out directory from previous build, removing it"
44+
rm -rf /tmp/baipp/dist/out
45+
fi
46+
4047
- name: Build setuptools-scm
4148
uses: hynek/build-and-inspect-python-package@v2
4249
with:

0 commit comments

Comments
 (0)