Skip to content

Commit 919c349

Browse files
committed
Bump GitHub Actions to latest versions
1 parent 4658ab1 commit 919c349

4 files changed

Lines changed: 16 additions & 13 deletions

File tree

.github/workflows/code-style.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ jobs:
44
black:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v3
7+
- uses: actions/checkout@v7
88
- uses: psf/black@stable
99
isort:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-python@v4
14-
with:
15-
python-version: 3.8
16-
- uses: jamescurtin/isort-action@master
12+
- uses: actions/checkout@v7
13+
- uses: actions/setup-python@v6
14+
- run: pip install isort
15+
- run: isort --check-only --diff .

.github/workflows/linting.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ jobs:
44
pyflakes:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v3
7+
- uses: actions/checkout@v7
88
- run: pip install pyflakes
99
- run: pyflakes $(git ls-files '*.py' | grep -v '^frida/frida_bindgen/assets/')
1010
mypy:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v7
1414
- uses: jpetrucciani/mypy-check@master
1515
with:
1616
mypy_flags: '--exclude examples --exclude setup --exclude frida/frida_bindgen/assets'

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on: [push, pull_request]
33
jobs:
44
test:
55
runs-on: ubuntu-latest
6+
timeout-minutes: 20
67
steps:
78
- uses: actions/checkout@v7
89
with:

tests/test_bindgen.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -608,12 +608,15 @@ def test_device_get_process_by_name(self):
608608
with self.assertRaises(self.frida.ProcessNotFoundError):
609609
device.get_process("frida-nonexistent-process-zzz")
610610

611-
def test_attach_accepts_pid_and_name(self):
612-
import os
613-
611+
@unittest.skipIf(sys.platform == "win32", "requires a POSIX shell")
612+
def test_attach_accepts_pid(self):
614613
device = self.frida.get_local_device()
615-
session = device.attach(os.getpid())
616-
session.detach()
614+
pid = device.spawn(["/bin/sh", "-c", "sleep 30"])
615+
try:
616+
session = device.attach(pid)
617+
session.detach()
618+
finally:
619+
device.kill(pid)
617620

618621
def test_facade_repr(self):
619622
device = self.frida.get_local_device()

0 commit comments

Comments
 (0)