File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 17
17
env :
18
18
TEST_PYTHON_VERSION : 3.9
19
19
TEST_OS : ' ubuntu-20.04'
20
+ SKIP_STREAMING_OS : ' windows-2022'
21
+ SKIP_STREAMING_PYTHON_VERSION : 3.11.0
20
22
21
23
jobs :
22
24
build :
@@ -40,12 +42,25 @@ jobs:
40
42
run : |
41
43
python otherfiles/requirements-splitter.py
42
44
pip install --upgrade --upgrade-strategy=only-if-needed -r test-requirements.txt
43
- - name : Pymilo Functionality Tests with pytest
45
+ - name : Pymilo Core Functionality Tests with pytest
46
+ env :
47
+ COVERAGE_FILE : .coverage.core
44
48
run : |
45
- python -m pytest . --cov=pymilo --cov-report=term
49
+ python -m pytest . --ignore=./tests/test_ml_streaming --cov=pymilo --cov-report=term --cov-report=xml:coverage_core.xml
50
+ - name : Pymilo Streaming Functionality Tests with pytest
51
+ env :
52
+ COVERAGE_FILE : .coverage.streaming
53
+ run : |
54
+ python -m pytest ./tests/test_ml_streaming --cov=pymilo --cov-report=term --cov-report=xml:coverage_streaming.xml
55
+ if : matrix.python-version != env.SKIP_STREAMING_PYTHON_VERSION || matrix.os != env.SKIP_STREAMING_OS
56
+ - name : Merge coverage files
57
+ run : |
58
+ coverage combine
59
+ coverage xml -o coverage_combined.xml
46
60
- name : Upload coverage to Codecov
47
61
uses : codecov/codecov-action@v3
48
62
with :
63
+ files : coverage_combined.xml
49
64
fail_ci_if_error : false
50
65
if : matrix.python-version == env.TEST_PYTHON_VERSION && matrix.os == env.TEST_OS
51
66
- name : Vulture, Bandit and Pydocstyle Tests
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
24
24
- PyMilo exception types added in ` pymilo/exceptions/__init__.py `
25
25
- PyMilo exception types added in ` pymilo/__init__.py `
26
26
### Changed
27
+ - ` core ` and ` streaming ` tests divided in ` test.yml `
27
28
- ` communication_protocol ` parameter added to ` PyMiloClient ` class
28
29
- ` communication_protocol ` parameter added to ` PyMiloServer ` class
29
30
- ` ML Streaming ` testcases updated to support protocol selection
You can’t perform that action at this time.
0 commit comments