-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (36 loc) · 1.06 KB
/
pr_approval.yaml
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
name: Pytest
on:
- push
- pull_request
jobs:
pytest:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: pip install --upgrade setuptools
- run: pip install --upgrade wheel
- run: pip install pycodestyle
- run: pip install pydocstyle
- run: pip install pytest-cov
- run: pip install --upgrade importlib-metadata
- run: pip install -r requirements.txt
- run: pip install -e .[dev] || pip install -e .
- name: Pytest Coverage
run: pytest -v --cov=ccx_messaging --cov-fail-under=70
- name: Coverage export
run: pytest -v --cov=ccx_messaging --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v3
if: ${{ matrix.python-version == '3.8' }}
with:
token: c5c72a0d-fa95-4f38-8015-9aadbaf46466