File tree Expand file tree Collapse file tree 2 files changed +83
-0
lines changed Expand file tree Collapse file tree 2 files changed +83
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : tox-windows
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+
9
+ jobs :
10
+ test :
11
+ name : Test
12
+ runs-on : windows-latest
13
+ strategy :
14
+ matrix :
15
+ python-version : [2.7, 3.8]
16
+
17
+ steps :
18
+ - name : Checkout code
19
+ uses : actions/checkout@main
20
+
21
+ - name : Setup Python
22
+ uses : actions/setup-python@main
23
+ with :
24
+ python-version : ${{ matrix.python-version }}
25
+
26
+ - name : Install Dependencies
27
+ run : |
28
+ pip install tox
29
+
30
+ - name : Run Test
31
+ run : |
32
+ python -m tox -c python/tox_windows.ini
Original file line number Diff line number Diff line change
1
+ # Tox (http://tox.testrun.org/) is a tool for running tests
2
+ # in multiple virtualenvs. This configuration file will run the
3
+ # test suite on all supported python versions. To use it, "pip install tox"
4
+ # and then run "tox" from this directory.
5
+
6
+ # AppVeyor note: lint and lint2 are currently failing, but this appears to be an
7
+ # AppVeyor issue (all tests work pass locally on varius OS's and in travis) so
8
+ # these tests have simply been commented out
9
+
10
+ [tox]
11
+ envlist =
12
+ py27,
13
+ py38
14
+ # lint2,
15
+ # lint
16
+
17
+ [testenv]
18
+ commands = py.test --verbose tests
19
+ deps =
20
+ pytest
21
+ pytest-mock
22
+
23
+ [testenv:lint2]
24
+ basepython =python2.7
25
+ deps =
26
+ pylint
27
+ pycodestyle
28
+ pytest
29
+ pytest-mock
30
+ commands =
31
+ pylint -E {envsitepackagesdir}/omnisharp {toxinidir}/tests
32
+ pycodestyle {envsitepackagesdir}/omnisharp {toxinidir}/tests
33
+
34
+ [testenv:lint]
35
+ basepython =python3.8
36
+ deps =
37
+ pylint
38
+ pycodestyle
39
+ pytest
40
+ pytest-mock
41
+ commands =
42
+ pylint -E {envsitepackagesdir}/omnisharp {toxinidir}/tests
43
+ pycodestyle {envsitepackagesdir}/omnisharp {toxinidir}/tests
44
+
45
+ [testenv:coverage]
46
+ basepython =python3.8
47
+ deps =
48
+ pytest
49
+ pytest-mock
50
+ pytest-cov
51
+ commands = py.test --verbose --cov =omnisharp --cov-report html tests
You can’t perform that action at this time.
0 commit comments