File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Unit tests
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : [ master ]
7+ pull_request :
8+ branches : [ master ]
9+
10+ jobs :
11+ test-ubuntu :
12+ runs-on : ubuntu-latest
13+ strategy :
14+ matrix :
15+ python-version : ["3.7", "3.8", "3.9", "3.10"]
16+ steps :
17+ - uses : actions/checkout@v3
18+ - name : Set up Python ${{ matrix.python-version }}
19+ uses : actions/setup-python@v3
20+ with :
21+ python-version : ${{ matrix.python-version }}
22+ - name : Install tox
23+ run : pip install tox
24+ - name : Run Tox
25+ run : tox -e py
26+
27+ # test-win:
28+ # runs-on: windows-latest
29+ # strategy:
30+ # matrix:
31+ # python-version: ["3.7", "3.8", "3.9", "3.10"]
32+ # steps:
33+ # - uses: actions/checkout@v3
34+ # - name: Set up Python ${{ matrix.python-version }}
35+ # uses: actions/setup-python@v3
36+ # with:
37+ # python-version: ${{ matrix.python-version }}
38+ # - name: Install tox
39+ # run: pip install tox
40+ # - name: Run Tox
41+ # run: tox -e py
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-latest'
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'
187
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)'
You can’t perform that action at this time.
0 commit comments