Skip to content

Commit 64e3e9e

Browse files
author
Vivek Reddy
committed
adding workflow for this
Signed-off-by: Vivek Reddy <vivekrsplunk@github.com>
1 parent 93a94b8 commit 64e3e9e

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# .github/workflows/ci.yml
2+
3+
name: CI
4+
5+
on:
6+
push:
7+
branches: [ CSPL-3152 ]
8+
pull_request:
9+
branches: [ CSPL-3152 ]
10+
11+
jobs:
12+
build-and-test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: '3.8'
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m venv .venv
26+
source .venv/bin/activate
27+
pip install --upgrade pip
28+
pip install -r requirements.txt
29+
pip install -e .
30+
pip install pytest coverage
31+
32+
- name: Run Tests with Coverage
33+
run: |
34+
source .venv/bin/activate
35+
coverage run -m unittest discover -s tests
36+
coverage report
37+
coverage xml
38+
39+
- name: Upload Coverage to Codecov
40+
uses: codecov/codecov-action@v2
41+
with:
42+
files: coverage.xml
43+
flags: unittests
44+
name: codecov-umbrella

0 commit comments

Comments
 (0)