🐛 fix(gitea_workflow): clean up temporary repo dirs in workflows

This commit is contained in:
csh
2026-05-22 16:39:08 +08:00
parent 98c3f305f9
commit 2bc3b115dc
5 changed files with 6 additions and 0 deletions
+2
View File
@@ -37,6 +37,8 @@ class GiteaWorkflowBootstrapTests(unittest.TestCase):
or 'mkdir -p "${{ env.WORKSPACE_DIR }}"' in text
)
self.assertIn('echo "REPO_DIR=$REPO_DIR" >>', text)
self.assertIn("trap", text)
self.assertIn('rm -rf "$REPO_DIR"', text)
def test_test_workflow_installs_tomli_for_python_template_validation(self):
text = TEST_WORKFLOW.read_text(encoding="utf-8")