Skip to content

Commit 2434e12

Browse files
committed
ci: fix workspace permissions after docker test runs
Docker containers run as root, so files created during tests (e.g. .pytest_cache) are root-owned. Subsequent jobs on the same runner fail when actions/checkout tries to clean the workspace. Fix by restoring ownership after each test run.
1 parent e782feb commit 2434e12

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,7 @@ jobs:
177177
name: test-results-py${{ matrix.python-version }}
178178
path: test-results.xml
179179
retention-days: 7
180+
181+
- name: Fix workspace permissions
182+
if: always()
183+
run: sudo chown -R $(id -u):$(id -g) "${{ github.workspace }}"

0 commit comments

Comments
 (0)