🐛 fix(ci): install tomli for gitea tests

This commit is contained in:
csh 2026-05-19 10:37:04 +08:00
parent 55cda3bd42
commit bc8498f5d6
2 changed files with 5 additions and 1 deletions

View File

@ -78,7 +78,7 @@ jobs:
apt-get install -y python3-pip
python3 -m pip install --upgrade pip
python3 -m pip install yamllint
python3 -m pip install yamllint tomli
echo ""
echo "✓ Python 版本: $(python3 --version)"

View File

@ -38,6 +38,10 @@ class GiteaWorkflowBootstrapTests(unittest.TestCase):
)
self.assertIn('echo "REPO_DIR=$REPO_DIR" >>', text)
def test_test_workflow_installs_tomli_for_python_template_validation(self):
text = TEST_WORKFLOW.read_text(encoding="utf-8")
self.assertIn("python3 -m pip install yamllint tomli", text)
if __name__ == "__main__":
unittest.main()