Skip to content

Commit 12353de

Browse files
pw-ppodhajskiManul from Pathway
authored andcommitted
ci(actions): make sure workspace is clean (#9929)
GitOrigin-RevId: ade6d81dbc81fbe355a42fa5b87737b5b500bfc4
1 parent ae34117 commit 12353de

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/package_test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ jobs:
2525
runs-on: ${{ matrix.os }}
2626
timeout-minutes: 90
2727
steps:
28+
# This will ensure we have clean workspace
29+
- name: Cleanup build folder
30+
run: |
31+
ls -la ./
32+
rm -rf ./* || true
33+
rm -rf ./.??* || true
34+
ls -la ./
2835
- name: Set up Python ${{ matrix.python-version }}
2936
uses: actions/setup-python@v5
3037

@@ -114,6 +121,13 @@ jobs:
114121
runs-on: ${{ matrix.os }}
115122
timeout-minutes: 60
116123
steps:
124+
# This will ensure we have clean workspace
125+
- name: Cleanup build folder
126+
run: |
127+
ls -la ./
128+
rm -rf ./* || true
129+
rm -rf ./.??* || true
130+
ls -la ./
117131
- name: Set up Python ${{ matrix.python-version }}
118132
if: ${{ matrix.os != 'selfhosted-macOS'}}
119133
uses: actions/setup-python@v5
@@ -141,6 +155,7 @@ jobs:
141155
fi
142156
export PYTEST_ADDOPTS="--dist worksteal -n auto"
143157
python -m pytest -v --confcutdir "${ENV_NAME}" --doctest-modules --pyargs pathway
158+
rm -rf ${WHEEL}
144159
145160
Notify_on_failure:
146161
needs:

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ jobs:
5353
runs-on: ${{ matrix.os }}
5454
timeout-minutes: 60
5555
steps:
56+
# This will ensure we have clean workspace
57+
- name: Cleanup build folder
58+
run: |
59+
ls -la ./
60+
rm -rf ./* || true
61+
rm -rf ./.??* || true
62+
ls -la ./
5663
- name: Set up Python ${{ matrix.python-version }}
5764
uses: actions/setup-python@v5
5865

@@ -200,6 +207,13 @@ jobs:
200207
runs-on: ubuntu-22.04
201208
timeout-minutes: 60
202209
steps:
210+
# This will ensure we have clean workspace
211+
- name: Cleanup build folder
212+
run: |
213+
ls -la ./
214+
rm -rf ./* || true
215+
rm -rf ./.??* || true
216+
ls -la ./
203217
- name: Set up Python ${{ matrix.python-version }}
204218
uses: actions/setup-python@v5
205219
with:
@@ -245,6 +259,13 @@ jobs:
245259
runs-on: ${{ matrix.os }}
246260
timeout-minutes: 60
247261
steps:
262+
# This will ensure we have clean workspace
263+
- name: Cleanup build folder
264+
run: |
265+
ls -la ./
266+
rm -rf ./* || true
267+
rm -rf ./.??* || true
268+
ls -la ./
248269
- name: Create dir for wheels
249270
run: |
250271
mkdir -p wheels

0 commit comments

Comments
 (0)