File tree 7 files changed +32
-18
lines changed
7 files changed +32
-18
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ mypy: ## Run mypy
24
24
25
25
.PHONY : unittest
26
26
unittest : # # Run unittest
27
- python -m pytest test/unit/
27
+ python -m pytest $( ARGS ) test/unit/
28
28
29
29
.PHONY : help
30
30
help : # # Display this help screen
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ pytest = "~=6.2"
15
15
pytest-cov = " ~=2.11"
16
16
17
17
tox = " ~=3.21"
18
- tox-travis = " ~=0.12"
19
18
20
19
httpretty = " ~=1.0"
21
20
python-dateutil = " ~=2.8"
Original file line number Diff line number Diff line change 3
3
[ ![ PyPI version] ( https://badge.fury.io/py/Appium-Python-Client.svg )] ( https://badge.fury.io/py/Appium-Python-Client )
4
4
[ ![ Downloads] ( https://pepy.tech/badge/appium-python-client )] ( https://pepy.tech/project/appium-python-client )
5
5
6
- [ ![ Build Status] ( https://travis-ci.org/appium/python-client.svg?branch=master )] ( https://travis-ci.org/appium/python-client )
7
6
[ ![ Build Status] ( https://dev.azure.com/AppiumCI/Appium%20CI/_apis/build/status/appium.python-client?branchName=master )] ( https://dev.azure.com/AppiumCI/Appium%20CI/_build/latest?definitionId=56&branchName=master )
8
7
9
8
[ ![ Code style: black] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/psf/black )
Original file line number Diff line number Diff line change 4
4
# https://docs.microsoft.com/azure/devops/pipelines/languages/xcode
5
5
jobs :
6
6
- template : ./ci-jobs/functional_test.yml
7
+ - job : ' unitTests'
8
+ pool :
9
+ vmImage : ' ubuntu-18.04'
10
+ strategy :
11
+ matrix :
12
+ Python37 :
13
+ python.version : ' 3.7'
14
+ Python38 :
15
+ python.version : ' 3.8'
16
+ Python39 :
17
+ python.version : ' 3.9'
18
+
19
+ steps :
20
+ - task : UsePythonVersion@0
21
+ displayName : ' Use Python $(python.version)'
22
+ inputs :
23
+ versionSpec : ' $(python.version)'
24
+
25
+ - script : pip install tox
26
+ displayName : ' Install Tox'
27
+
28
+ - script : tox -e py
29
+ displayName : ' Run Tox'
30
+
31
+ - task : PublishTestResults@2
32
+ condition : succeededOrFailed()
33
+ inputs :
34
+ testResultsFiles : ' **/junit.xml'
35
+ testRunTitle : ' Publish test results for Python $(python.version)'
7
36
8
37
# Runs tests nightly to make sure they works against appium@beta
9
38
schedules :
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if ! make pylint ARGS=--errors-only ; then
16
16
EXIT_STATUS=1
17
17
fi
18
18
19
- if ! make unittest ; then
19
+ if ! make unittest ARGS=--junitxml=./test/unit/junit.xml ; then
20
20
EXIT_STATUS=1
21
21
fi
22
22
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ skipsdist = True
3
3
envlist =
4
4
py37,
5
5
py38,
6
- py39-dev
6
+ py39
7
7
8
8
[testenv]
9
9
deps =
You can’t perform that action at this time.
0 commit comments