Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
pip install --upgrade pip setuptools
pip install .[testing]

- name: Run pytype
if: matrix.python-version != '3.13'
run: |
rm -f android_env/proto/*_pb2.py android_env/proto/a11y/*_pb2.py android_env/proto/*_pb2_grpc.py
pytype android_env

- name: Run tests
run: |
# Find all test files, print their names and execute them in parallel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def test_adb_output(self):
line = line.decode('utf-8')
matches = re.match(r'\s+SurfaceOrientation:\s+(\d)', line)
self.assertIsNotNone(matches)
assert matches is not None
orientation = matches.group(1)
self.assertEqual(orientation, '0')
line = adb_controller.execute_command(['shell', 'service', 'check', 'foo'])
Expand Down
1 change: 1 addition & 0 deletions android_env/components/task_manager_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def _assert_match(self, event: re.Pattern[str], text: str) -> re.Match[str]:
self.assertRegex(text, event)
match = event.fullmatch(text)
self.assertIsNotNone(match)
assert match is not None
return match

def test_start(self):
Expand Down
Loading