File tree 5 files changed +63
-49
lines changed
5 files changed +63
-49
lines changed Original file line number Diff line number Diff line change
1
+ name : Tests
2
+ on :
3
+ push :
4
+ branches : " *"
5
+ pull_request :
6
+ branches : " *"
7
+ jobs :
8
+ test :
9
+ runs-on : ${{ matrix.os }}-latest
10
+ strategy :
11
+ fail-fast : false
12
+ matrix :
13
+ os : [ubuntu, windows]
14
+ python-version : ["3.6", "3.8", "3.9"]
15
+ exclude :
16
+ # https://github.com/spyder-ide/pywinpty/issues/134
17
+ - os : windows
18
+ python-version : " 3.9"
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v1
22
+ - name : Install Python ${{ matrix.python-version }}
23
+ uses : actions/setup-python@v1
24
+ with :
25
+ python-version : ${{ matrix.python-version }}
26
+ architecture : " x64"
27
+ - name : Upgrade packaging dependencies
28
+ run : |
29
+ pip install --upgrade pip setuptools wheel --user
30
+ - name : Get pip cache dir
31
+ id : pip-cache
32
+ run : |
33
+ echo "::set-output name=dir::$(pip cache dir)"
34
+ - name : Cache pip
35
+ uses : actions/cache@v1
36
+ with :
37
+ path : ${{ steps.pip-cache.outputs.dir }}
38
+ key : ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.cfg') }}
39
+ restore-keys : |
40
+ ${{ runner.os }}-pip-${{ matrix.python-version }}-
41
+ ${{ runner.os }}-pip-
42
+ - name : Install the Python dependencies
43
+ run : |
44
+ pip install -e .[test]
45
+ - name : List installed packages
46
+ run : |
47
+ pip freeze
48
+ pip check
49
+ - name : Run the tests
50
+ if : ${{ matrix.os != 'windows' }}
51
+ run : |
52
+ pytest -vv
53
+ - name : Run basic test on Windows
54
+ if : ${{ matrix.os == 'windows' }}
55
+ run : |
56
+ pytest terminado/tests/basic_test.py::CommonTests::test_basic
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
22
* ``terminado/_static/terminado.js ``: A lightweight wrapper to set up a
23
23
term.js terminal with a websocket.
24
24
25
+ Local Installation:
26
+
27
+ $ pip install -e .[test]
28
+
29
+
25
30
Usage example:
26
31
27
32
.. code :: python
@@ -66,4 +71,4 @@ for more examples. This is a simplified version of the ``single.py`` demo.
66
71
67
72
Run the unit tests with:
68
73
69
- $ nosetests
74
+ $ pytest
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 24
24
"pywinpty (>=0.5);os_name=='nt'" ,
25
25
"tornado (>=4)" ,
26
26
],
27
+ extras_require = dict (test = ['pytest' ]),
27
28
python_requires = ">=3.6" ,
28
29
classifiers = [
29
30
"Environment :: Web Environment" ,
You can’t perform that action at this time.
0 commit comments