Skip to content

Commit ac0e6c9

Browse files
committed
[add] windows test
1 parent 0be1fd6 commit ac0e6c9

File tree

2 files changed

+83
-0
lines changed

2 files changed

+83
-0
lines changed

.github/workflows/tox_windows.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

python/tox_windows.ini

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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

0 commit comments

Comments
 (0)