forked from robotframework/robotframework
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.28 KB
/
unit_tests.yml
File metadata and controls
53 lines (43 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Unit tests
on:
push:
branches:
- main
- master
paths:
- '.github/workflows/**'
- 'src/**'
- 'utest/**'
- '!**/*.rst'
jobs:
test_using_builtin_python:
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest', 'windows-latest' ]
python-version: [ '3.6', '3.7', '3.8', '3.9', 'pypy3' ]
exclude:
- os: windows-latest
python-version: 'pypy3'
runs-on: ${{ matrix.os }}
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v2.3.2
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- name: Run unit tests with coverage
run: |
python -m pip install coverage
python -m pip install -r utest/requirements.txt
python -m coverage run --branch utest/run.py -v
- name: Prepare HTML/XML coverage report
run: |
python -m coverage xml -i
if: always()
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b
with:
name: ${{ matrix.python-version }}-${{ matrix.os }}
if: always()