Skip to content

Commit e5420f6

Browse files
authored
chore: fix coverage paths (#3004)
1 parent f013bb6 commit e5420f6

File tree

3 files changed

+64
-3
lines changed

3 files changed

+64
-3
lines changed

.github/workflows/test_deploy.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,15 @@ jobs:
309309
run: |
310310
git config --global --add user.name "Renku Bot"
311311
git config --global --add user.email "[email protected]"
312+
- name: Set coveralls path mapping
313+
run: |
314+
echo "
315+
316+
[tool.coverage.paths]
317+
source = [
318+
\"renku/\",
319+
\"$(python -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')/renku/\"
320+
]" >> pyproject.toml
312321
- name: Test with pytest
313322
env:
314323
POETRY_VIRTUALENVS_CREATE: false
@@ -321,6 +330,7 @@ jobs:
321330
GITHUB_TOKEN: $COVERALLS_REPO_TOKEN
322331
RENKU_REQUESTS_TIMEOUT_SECONDS: 120
323332
COVERALLS_PARALLEL: true
333+
if: always()
324334
run: coveralls --service=github-actions
325335
continue-on-error: true
326336

@@ -367,6 +377,15 @@ jobs:
367377
run: |
368378
git config --global --add user.name "Renku Bot"
369379
git config --global --add user.email "[email protected]"
380+
- name: Set coveralls path mapping
381+
run: |
382+
echo "
383+
384+
[tool.coverage.paths]
385+
source = [
386+
\"renku/\",
387+
\"$(python -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')/renku/\"
388+
]" >> pyproject.toml
370389
- name: Test with pytest
371390
env:
372391
POETRY_VIRTUALENVS_CREATE: false
@@ -385,6 +404,7 @@ jobs:
385404
GITHUB_TOKEN: $COVERALLS_REPO_TOKEN
386405
RENKU_REQUESTS_TIMEOUT_SECONDS: 120
387406
COVERALLS_PARALLEL: true
407+
if: always()
388408
run: coveralls --service=github-actions
389409
continue-on-error: true
390410

@@ -431,6 +451,15 @@ jobs:
431451
run: |
432452
git config --global --add user.name "Renku Bot"
433453
git config --global --add user.email "[email protected]"
454+
- name: Set coveralls path mapping
455+
run: |
456+
echo "
457+
458+
[tool.coverage.paths]
459+
source = [
460+
\"renku/\",
461+
\"$(python -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')/renku/\"
462+
]" >> pyproject.toml
434463
- name: Test with pytest
435464
env:
436465
POETRY_VIRTUALENVS_CREATE: false
@@ -449,6 +478,7 @@ jobs:
449478
GITHUB_TOKEN: $COVERALLS_REPO_TOKEN
450479
RENKU_REQUESTS_TIMEOUT_SECONDS: 120
451480
COVERALLS_PARALLEL: true
481+
if: always()
452482
run: coveralls --service=github-actions
453483
continue-on-error: true
454484

@@ -495,6 +525,15 @@ jobs:
495525
run: |
496526
git config --global --add user.name "Renku Bot"
497527
git config --global --add user.email "[email protected]"
528+
- name: Set coveralls path mapping
529+
run: |
530+
echo "
531+
532+
[tool.coverage.paths]
533+
source = [
534+
\"renku/\",
535+
\"$(python -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')/renku/\"
536+
]" >> pyproject.toml
498537
- name: Test with pytest
499538
env:
500539
POETRY_VIRTUALENVS_CREATE: false
@@ -507,6 +546,7 @@ jobs:
507546
GITHUB_TOKEN: $COVERALLS_REPO_TOKEN
508547
RENKU_REQUESTS_TIMEOUT_SECONDS: 120
509548
COVERALLS_PARALLEL: true
549+
if: always()
510550
run: coveralls --service=github-actions
511551
continue-on-error: true
512552

@@ -714,6 +754,15 @@ jobs:
714754
with:
715755
path: cassettes
716756
key: ${{ env.NETWORK_CACHE_PREFIX }}-${{ needs.year-week.outputs.date }}-${{ hashFiles('tests') }}-${{ github.job }}
757+
- name: Set coveralls path mapping
758+
run: |
759+
echo "
760+
761+
[tool.coverage.paths]
762+
source = [
763+
\"renku/\",
764+
\"$(python -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')/renku/\"
765+
]" >> pyproject.toml
717766
- name: Test with pytest
718767
env:
719768
POETRY_VIRTUALENVS_CREATE: false
@@ -742,6 +791,7 @@ jobs:
742791
GITHUB_TOKEN: $COVERALLS_REPO_TOKEN
743792
RENKU_REQUESTS_TIMEOUT_SECONDS: 120
744793
COVERALLS_PARALLEL: true
794+
if: always()
745795
run: coveralls --service=github-actions
746796
continue-on-error: true
747797

@@ -793,6 +843,15 @@ jobs:
793843
with:
794844
path: cassettes
795845
key: ${{ env.NETWORK_CACHE_PREFIX }}-${{ needs.year-week.outputs.date }}-${{ hashFiles('tests') }}-${{ github.job }}
846+
- name: Set coveralls path mapping
847+
run: |
848+
echo "
849+
850+
[tool.coverage.paths]
851+
source = [
852+
\"renku/\",
853+
\"$(python -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')/renku/\"
854+
]" >> pyproject.toml
796855
- name: Test with pytest
797856
env:
798857
POETRY_VIRTUALENVS_CREATE: false
@@ -821,6 +880,7 @@ jobs:
821880
GITHUB_TOKEN: $COVERALLS_REPO_TOKEN
822881
RENKU_REQUESTS_TIMEOUT_SECONDS: 120
823882
COVERALLS_PARALLEL: true
883+
if: always()
824884
run: coveralls --service=github-actions
825885
continue-on-error: true
826886

@@ -1004,6 +1064,7 @@ jobs:
10041064
test-linux-integration,
10051065
test-linux-integration-service,
10061066
]
1067+
if: always()
10071068
runs-on: ubuntu-latest
10081069
permissions:
10091070
contents: read

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ circus = { version = "==0.17.1", optional = true }
6262
click = ">=8.0,<8.1.3"
6363
click-option-group = "<0.6.0,>=0.5.2"
6464
click-plugins = "==1.1.1"
65-
coverage = { version = "<6.4,>=4.5.3", optional = true }
65+
coverage = { version = "<6.4,>=4.5.3", extras=["toml"], optional = true }
6666
cryptography = "<37.0.0,>=3.4.1"
6767
cwl-utils = ">=0.12"
6868
cwltool = "==3.1.20211107152837"
@@ -318,7 +318,7 @@ pattern = """
318318
files = ["renku/version.py"]
319319

320320
[tool.pytest.ini_options]
321-
addopts = "--flake8 --black --doctest-glob=\"*.rst\" --doctest-modules --cov=renku --cov-config .coveragerc --cov-report=term-missing --ignore=docs/cheatsheet/"
321+
addopts = "--flake8 --black --doctest-glob=\"*.rst\" --doctest-modules --cov=renku --cov-report=term-missing --ignore=docs/cheatsheet/"
322322
doctest_optionflags = "ALLOW_UNICODE"
323323
flake8-ignore = ["*.py", "E121", "E126", "E203", "E226", "E231", "W503", "W504", "docs/conf.py", "docs/cheatsheet/conf.py", "ALL"]
324324
flake8-max-line-length = 120

0 commit comments

Comments
 (0)