Skip to content

Commit

Permalink
Merge pull request #7 from AnkurAnand11/issue-6-setup-release-script-…
Browse files Browse the repository at this point in the history
…and-codecov

Setting up the codecoverage script for python client
  • Loading branch information
tkaitchuck authored Nov 14, 2023
2 parents 8893cc3 + a72b2e4 commit 311ff79
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pravega"
version = "0.3.5"
version = "0.3.6"
edition = "2018"
categories = ["network-programming"]
keywords = ["streaming", "client", "pravega"]
Expand Down
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 311ff79

Please sign in to comment.