File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments