Skip to content

Commit

Permalink
Merge branch 'main' into latest-dependency-update-09b0678
Browse files Browse the repository at this point in the history
  • Loading branch information
gsheni authored Nov 18, 2024
2 parents d744bda + cbe1e30 commit 5465bcf
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ jobs:
python -m pip install invoke .[test]
- name: Run integration tests
run: invoke integration

- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9
name: Upload integration codecov report
uses: codecov/codecov-action@v4
with:
flags: integration
file: './integration_cov.xml'
token: ${{ secrets.CODECOV_TOKEN }}
11 changes: 8 additions & 3 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
run: invoke check-dependencies
- name: Run Unit tests
run: invoke unit
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8
name: Upload codecov report
uses: codecov/codecov-action@v2

- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9
name: Upload unit codecov report
uses: codecov/codecov-action@v4
with:
flags: unit
file: './unit_cov.xml'
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ coverage.xml
*.cover
.hypothesis/
.pytest_cache/
*_cov.xml

# Translations
*.mo
Expand Down
4 changes: 2 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ def check_dependencies(c):
def unit(c):
c.run(
'python -m pytest ./tests/unit ./tests/performance/tests ./tests/datasets/tests '
'--cov=rdt --cov-report=xml --cov-fail-under=100'
'--cov=rdt --cov-fail-under=100 --cov-report=xml:./unit_cov.xml'
)


@task
def integration(c):
c.run('python -m pytest ./tests/integration')
c.run('python -m pytest ./tests/integration --cov=rdt --cov-report=xml:./integration_cov.xml')


@task
Expand Down

0 comments on commit 5465bcf

Please sign in to comment.