File tree Expand file tree Collapse file tree 7 files changed +32
-18
lines changed
Expand file tree Collapse file tree 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
2424
2525.PHONY : unittest
2626unittest : # # Run unittest
27- python -m pytest test/unit/
27+ python -m pytest $( ARGS ) test/unit/
2828
2929.PHONY : help
3030help : # # Display this help screen
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ pytest = "~=6.2"
1515pytest-cov = " ~=2.11"
1616
1717tox = " ~=3.21"
18- tox-travis = " ~=0.12"
1918
2019httpretty = " ~=1.0"
2120python-dateutil = " ~=2.8"
Original file line number Diff line number Diff line change 33[ ![ PyPI version] ( https://badge.fury.io/py/Appium-Python-Client.svg )] ( https://badge.fury.io/py/Appium-Python-Client )
44[ ![ Downloads] ( https://pepy.tech/badge/appium-python-client )] ( https://pepy.tech/project/appium-python-client )
55
6- [ ![ Build Status] ( https://travis-ci.org/appium/python-client.svg?branch=master )] ( https://travis-ci.org/appium/python-client )
76[ ![ 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 )
87
98[ ![ 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 44# https://docs.microsoft.com/azure/devops/pipelines/languages/xcode
55jobs :
66 - 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)'
736
837# Runs tests nightly to make sure they works against appium@beta
938schedules :
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if ! make pylint ARGS=--errors-only ; then
1616 EXIT_STATUS=1
1717fi
1818
19- if ! make unittest ; then
19+ if ! make unittest ARGS=--junitxml=./test/unit/junit.xml ; then
2020 EXIT_STATUS=1
2121fi
2222
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ skipsdist = True
33envlist =
44 py37,
55 py38,
6- py39-dev
6+ py39
77
88[testenv]
99deps =
You can’t perform that action at this time.
0 commit comments