Debian Codegraph @

.github/workflows/pytest.yml

raw symbols SCIP
1 name: PyTest
2
3 # yamllint disable-line rule:truthy
4 on:
5 push:
6 branches: master
7 pull_request:
8
9 jobs:
10 pytest:
11 name: PyTest
12 runs-on: ubuntu-latest
13 strategy:
14 matrix:
15 python: ["3.7", "3.8", "3.9"]
16 env:
17 PYTHON: ${{ matrix.python }}
18 steps:
19 - name: Checkout
20 uses: actions/checkout@v2
21 - name: Set up Python
22 uses: actions/setup-python@v2
23 with:
24 python-version: ${{ matrix.python }}
25 - name: Install dependencies
26 run: |
27 python -m pip install --upgrade pip
28 pip install pytest pytest-cov
29 - name: PyTest
30 run: |
31 pytest --cov=./rpi_bad_power --cov-report=xml
32 - name: Upload coverage to Codecov
33 uses: codecov/codecov-action@v1
34 with:
35 file: ./coverage.xml
36 env_vars: PYTHON
37 fail_ci_if_error: true
38 path_to_write_report: ./codecov_report.gz
39 verbose: true