-
Notifications
You must be signed in to change notification settings - Fork 21
42 lines (40 loc) · 1.15 KB
/
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
34
35
36
37
38
39
40
41
42
name: tbot selftest CI
on:
push:
branches:
- master
- wip
pull_request:
jobs:
test:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies, linters, doc-tools
run: |
python -m pip install --upgrade pip
pip install pytest mypy paramiko termcolor2 pyserial coverage pytest-cov
- name: Run pre-commit hooks for all files
uses: pre-commit/[email protected]
with:
extra_args: --all-files --verbose
env:
SKIP: selftests
- name: Run tbot selftests
run: |
export COLUMNS=160
python -m pytest --cov=tbot --cov=tbot_contrib -v --color=yes selftest/
- name: Run tbot extended selftests
run: |
export CLICOLOR_FORCE=1
python -m tbot.main -vv selftest_tc
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}