-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1018 Bytes
/
pytest.yml
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
name: pytest
on:
pull_request:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'Test scenario tags'
defaults:
run:
shell: bash -l {0}
jobs:
run-matrix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11"]
fail-fast: false
steps:
- uses: actions/checkout@v3
# pip cache
- name: pip cache
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
# pip install
- name: pip install
run: python3 -m pip install -U pip && python3 -m pip install ".[dev]"
# pytest
- name: Run pytest
uses: coactions/setup-xvfb@v1
with:
run: pytest --cov=./src/vai_lab -v --cov-report=xml:./coverage.xml --cov-report term-missing