🐛 fix(ci): install tomli for gitea tests
This commit is contained in:
parent
55cda3bd42
commit
bc8498f5d6
|
|
@ -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)"
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue