-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (31 loc) · 917 Bytes
/
pytest.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
name: Test
on:
- push
jobs:
TestLib:
name: Test Library @ Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install requirements
run: python -m pip install -r vigobus/requirements.txt
- name: Install test requirements
run: python -m pip install -r vigobus/requirements.test.txt
- name: Test (unit)
working-directory: vigobus
run: pytest -sv . -m "not real"
- name: Test (real)
if: ${{ matrix.python-version == '3.9' }}
working-directory: vigobus
run: pytest -sv . -m "real and not heavy"