-
Notifications
You must be signed in to change notification settings - Fork 27
36 lines (32 loc) · 1.24 KB
/
sanity.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
name: Sanity
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libsnmp-dev snmp-mibs-downloader gcc python-dev
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -r requirements.txt
pip install -r requirements.development.txt
- name: run tests with embedded data
run: |
python -m hytera_homebrew_bridge.tests.lp_test
python -m hytera_homebrew_bridge.tests.hrnp_test
python -m hytera_homebrew_bridge.tests.hstrp_test
python -m hytera_homebrew_bridge.tests.ipsc_test
- name: Lint with flake8
run: |
flake8 hytera_homebrew_bridge --count --exclude kaitai,tests --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 hytera_homebrew_bridge --count --ignore E402 --exclude kaitai --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest