File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
sudo : false
2
2
3
+ # language: csharp installs mono/dotnet but has limited python.
3
4
language : python
4
5
python :
5
6
- 2.7
@@ -29,12 +30,13 @@ addons:
29
30
- ca-certificates-mono
30
31
31
32
install :
32
- - pip install pycparser coverage codecov
33
+ - pip install --upgrade pycparser coverage codecov pytest
34
+ # setup.py install works too, but need to deal w Python.test then
33
35
- coverage run setup.py build_ext --inplace
34
36
35
37
script :
36
38
- export PYTHONPATH=`pwd`:$PYTHONPATH
37
- - python src/tests/runtests.py
39
+ - python -m pytest
38
40
# - mono ./packages/NUnit.*/tools/nunit-console.exe src/embed_tests/bin/Python.EmbeddingTest.dll
39
41
40
42
after_success :
Original file line number Diff line number Diff line change 48
48
49
49
install :
50
50
# install for wheels & coverage
51
- - pip install --upgrade pip wheel coverage codecov
51
+ - pip install --upgrade pip wheel coverage codecov pytest
52
52
53
53
# Install OpenCover. Can't put on packages.config; not Linux/Mono compatible
54
54
- .\tools\nuget\nuget.exe install OpenCover -OutputDirectory packages
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ $RUNTIME_DIR = ".\src\runtime\bin\"
14
14
# why `2>&1 | %{ "$_" }`? see: http://stackoverflow.com/a/20950421/5208670
15
15
Write-Host (" Starting Python tests" ) - ForegroundColor " Green"
16
16
.$OPENCOVER - register:user - searchdirs:" $RUNTIME_DIR " - output:py.coverage `
17
- - target:" $PY " - targetargs:src\tests\runtests.py `
17
+ - target:" $PY " - targetargs:" -m pytest " `
18
18
- returntargetcode `
19
19
2>&1 | % { " $_ " }
20
20
$PYTHON_STATUS = $LastExitCode
You can’t perform that action at this time.
0 commit comments