Execute a single migration step.
(self, step: MigrationStep)
| 113 | return all_passed |
| 114 | |
| 115 | def _execute_step(self, step: MigrationStep) -> bool: |
| 116 | """Execute a single migration step.""" |
| 117 | if step.name == "backup_legacy": |
| 118 | return self._backup_legacy_workflows() |
| 119 | elif step.name == "validate_modular": |
| 120 | return self._validate_modular_workflows() |
| 121 | elif step.name == "check_dependencies": |
| 122 | return self._check_script_dependencies() |
| 123 | elif step.name == "test_modular": |
| 124 | return self._test_modular_workflows() |
| 125 | elif step.name == "update_branch_protection": |
| 126 | return self._update_branch_protection() |
| 127 | elif step.name == "disable_legacy": |
| 128 | return self._disable_legacy_workflows() |
| 129 | elif step.name == "cleanup": |
| 130 | return self._cleanup_migration() |
| 131 | else: |
| 132 | step.error = f"Unknown migration step: {step.name}" |
| 133 | return False |
| 134 | |
| 135 | def _backup_legacy_workflows(self) -> bool: |
| 136 | """Backup legacy workflow files.""" |
no test coverage detected