Skip to content

Commit

Permalink
Adding codecov for python
Browse files Browse the repository at this point in the history
Signed-off-by: Ankur_Anand <[email protected]>
  • Loading branch information
AnkurAnand11 committed Oct 30, 2023
1 parent cbcddf2 commit a96db58
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 20 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/python_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
run: pip install 'maturin>=0.14,<0.15' virtualenv tox==3.28.0 tox-pyo3
- name: Test with tox
run: tox -c tox.ini
- uses: codecov/codecov-action@v3
with:
files: coverage.xml
name: ${{github.job}}-reports
- name: Upload Pravega standalone logs
uses: actions/upload-artifact@v2
if: always()
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ __pycache__/
book/book
html/
python_binding/.tox/

.coverage
coverage.xml
34 changes: 17 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@ python_binding = ["pyo3", "pyo3-asyncio"]
#Run tests for bindings using command cargo test --no-default-features

[dependencies]
tracing = "0.1.17"
tracing-futures = "0.2.4"
tracing-subscriber = "0.2.2"
pravega-client = {version = "0.3"}
pravega-client-shared = {version = "0.3"}
pravega-controller-client = {version = "0.3"}
pravega-wire-protocol = {version = "0.3"}
pravega-client-retry = {version = "0.3"}
pravega-connection-pool = {version = "0.3"}
pravega-client-config = {version = "0.3"}
tokio = "1.1"
tracing = "0.1.40"
tracing-futures = "0.2.5"
tracing-subscriber = "0.3.17"
pravega-client = {version = "0.3.2"}
pravega-client-shared = {version = "0.3.5"}
pravega-controller-client = {version = "0.3.5"}
pravega-wire-protocol = {version = "0.3.5"}
pravega-client-retry = {version = "0.3.5"}
pravega-connection-pool = {version = "0.3.5"}
pravega-client-config = {version = "0.3.5"}
tokio = "1.33.0"
lazy_static = "1.4.0"
uuid = {version = "0.8", features = ["v4"]}
futures = "0.3.5"
derive-new = "0.5"
uuid = {version = "1.5.0", features = ["v4"]}
futures = "0.3.28"
derive-new = "0.5.9"
#Python bindings
pyo3 = { version = "0.14.5" , features = ["extension-module", "multiple-pymethods"], optional = true }
pyo3-asyncio = { version = "0.14", features = ["tokio-runtime"], optional = true }
pyo3-asyncio = { version = "0.14.0", features = ["tokio-runtime"], optional = true }
#WASM bindings
wasm-bindgen = { version = "0.2.63", optional = true }
cfg-if = "0.1.10"
wasm-bindgen = { version = "0.2.87", optional = true }
cfg-if = "1.0.0"
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ requires = tox-pyo3
[testenv]
pyo3 = True
setenv =
RUST_LOG=debug
python3.10: COVERAGE_FILE = .coverage
deps =
pytest
pytest-timeout
aiounittest
commands = pytest {posargs:tests} --timeout=300 -vvvvv
pytest-cov
commands = pytest --cov --cov-report xml {posargs:tests} --timeout=300 -vvvvv

skip_install = True

0 comments on commit a96db58

Please sign in to comment.