-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (33 loc) · 927 Bytes
/
ci.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
---
name: ci
# yamllint disable-line rule:truthy
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
python3-openqa-client \
python3-paramiko \
python3-xdg \
python3-requests \
python3-responses \
python3-rpm \
python3-ruamel.yaml \
subversion \
python3-pytest \
python3-pytest-cov \
python3-coverage \
black
- name: Run tests + cov report
run: python3 -m pytest -v --cov=./mtui --cov-report=xml --cov-report=term
- name: Check style
run: make checkstyle
- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v3
with:
files: coverage.xml