Skip to content

Commit 8e3a57b

Browse files
authored
Merge pull request #70 from spoutn1k/master
Added automatic tests on push and pull requests
2 parents c73a423 + 27f1472 commit 8e3a57b

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/setup_test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
3+
name: Run tests
4+
5+
on: [ push, pull_request ]
6+
7+
jobs:
8+
Test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: [3.6, 3.7, 3.8, 3.9]
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install tox
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install tox
23+
- name: Test with tox
24+
run: |
25+
tox

ptrace/tools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def signal_to_exitcode(signum):
160160
Converts a signal number to an exit code.
161161
UNIX: https://www.gnu.org/software/bash/manual/html_node/Exit-Status.html
162162
163+
>>> import signal
163164
>>> signal_to_exitcode(signal.SIGQUIT)
164165
131
165166
"""

0 commit comments

Comments
 (0)