ci: install aiohttp for route tests
This commit is contained in:
@@ -26,7 +26,7 @@ jobs:
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --index-url https://download.pytorch.org/whl/cpu "torch>=2.5,<3"
|
||||
python -m pip install "numpy>=1.26,<3" "Pillow>=10,<13" "jsonschema>=4.20,<5"
|
||||
python -m pip install "aiohttp>=3.10,<4" "numpy>=1.26,<3" "Pillow>=10,<13" "jsonschema>=4.20,<5"
|
||||
|
||||
- name: Validate Python syntax
|
||||
run: python -m compileall -q __init__.py py
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
class CiWorkflowTests(unittest.TestCase):
|
||||
def test_python_route_test_dependencies_are_installed(self):
|
||||
workflow = (
|
||||
Path(__file__).parents[1] / ".github" / "workflows" / "validate.yml"
|
||||
).read_text(encoding="utf-8")
|
||||
|
||||
self.assertIn('"aiohttp>=3.10,<4"', workflow)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user