Skip to content

Commit 76a0bcb

Browse files
committed
Refactors Python cache removal in workflow
1 parent 8b3a84b commit 76a0bcb

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,6 @@ jobs:
131131
if: startsWith(github.ref , 'refs/tags/v') != true
132132
run: git tag --delete $(git tag)
133133

134-
- name: Remove Python cache (1/3)
135-
shell: bash
136-
run: pixi run clean-pycache
137-
138134
- name: Create Python package
139135
shell: bash
140136
run: |
@@ -151,7 +147,7 @@ jobs:
151147
shell: bash
152148
run: pixi remove --pypi easydiffraction
153149

154-
- name: Remove Python cache (2/3)
150+
- name: Remove Python cache files before uploading
155151
shell: bash
156152
run: pixi run clean-pycache
157153

@@ -164,6 +160,7 @@ jobs:
164160
path: |
165161
dist/
166162
tests/
163+
pytest.ini
167164
pixi.toml
168165
pixi.lock
169166
if-no-files-found: 'error'
@@ -221,10 +218,6 @@ jobs:
221218
pixi run --environment $env easydiffraction --version
222219
done
223220
224-
- name: Remove Python cache (3/3)
225-
shell: bash
226-
run: pixi run clean-pycache
227-
228221
- name: Run unit tests
229222
shell: bash
230223
run: |

0 commit comments

Comments
 (0)