-
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.31 KB
/
tests.yaml
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: Tests
on:
push:
branches:
- master
pull_request:
branches:
- "*"
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
py_ver: ["3.10", "3.11"]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.py_ver }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py_ver }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[testing]
- name: Running tests
shell: bash -l {0}
run: |
pytest tests \
-vv \
-n auto \
--color=yes \
--cov=./ \
--cov-append \
--cov-report html:coverage-serial-html \
--cov-report xml:coverage-serial.xml \
--cov-config=.coveragerc \
--junit-xml=${{ matrix.os }}-py${{ matrix.py_ver }}.xml \
--junit-prefix=${{ matrix.os }}-py${{ matrix.py_ver }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage-serial.xml,./coverage-parallel.xml
directory: .
flags: unittests
name: orko-tests