Skip to content

Commit 46a09b8

Browse files
authored
ci: run unit tests on actions (appium#773)
* ci: run unit tests on actions * ci: remove unit test section * ci: comment out win for now * ci: tweak trigger
1 parent 7d82821 commit 46a09b8

2 files changed

Lines changed: 41 additions & 28 deletions

File tree

.github/workflows/unit-test.yml

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

azure-pipelines.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,4 @@
44
# https://docs.microsoft.com/azure/devops/pipelines/languages/xcode
55
jobs:
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)'

0 commit comments

Comments
 (0)