-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (35 loc) · 966 Bytes
/
main.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: Workflow for pytest and Coverage.py
on: [push, pull_request]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
run:
runs-on: ubuntu-latest
env:
OS: ubuntu-latest
PYTHON: '3.10.7'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.10.7
- name: Install Developing Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Generate Coverage Report
run: |
pip install coverage
pip install pytest-cov
coverage run --source=fundamentus -m pytest -vv --color=yes
coverage report -m
coverage xml
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
files: ./coverage.xml
name: codecov-version
version: v0.1.0_8880
verbose: true