Skip to content

Commit

Permalink
Merge pull request #400 from FragileTech/codecov
Browse files Browse the repository at this point in the history
Fix Codecov
  • Loading branch information
Guillemdb authored Oct 16, 2022
2 parents 0afe598 + 0261641 commit f8abc41
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ coverage:
threshold: 0%
informational: true
paths:
- ^src/mloq.*
- src/mloq
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test:
.PHONY: test-codecov
test-codecov:
find -name "*.pyc" -delete
pytest -n $n -s -o log_cli=true -o log_cli_level=info --cov=. --cov-report=xml --cov-config=pyproject.toml
pytest -n $n -s -o log_cli=true -o log_cli_level=info --cov=./src/mloq --cov-report=xml --cov-config=pyproject.toml

.PHONY: docker-shell
docker-shell:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ honor_noqa = true
# Code coverage config
[tool.coverage.run]
branch = true
# source = ["src/mloq"]
source = ["src/mloq"]

[tool.coverage.report]
exclude_lines =["no cover",
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
psutil==5.8.0
pytest==6.2.5
pytest-cov==3.0.0
pytest-cov==4.0.0
pytest-xdist==2.4.0
pytest-rerunfailures==10.2
hypothesis==6.24.6
2 changes: 1 addition & 1 deletion src/mloq/assets/project/.codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ coverage:
threshold: 0%
informational: true
paths:
- ^src/mloq.*
- src/{{ project.project_name }}
2 changes: 1 addition & 1 deletion src/mloq/assets/project/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
psutil==5.8.0
pytest==6.2.5
pytest-cov==3.0.0
pytest-cov==4.0.0
pytest-xdist==2.4.0
pytest-rerunfailures==10.2
hypothesis==6.24.6
2 changes: 1 addition & 1 deletion src/mloq/assets/shared/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test:
.PHONY: test-codecov
test-codecov:
find -name "*.pyc" -delete
pytest -n $n -s -o log_cli=true -o log_cli_level=info --cov=. --cov-report=xml --cov-config=pyproject.toml{% endif %}
pytest -n $n -s -o log_cli=true -o log_cli_level=info --cov=./src/{{project.project_name}} --cov-report=xml --cov-config=pyproject.toml{% endif %}
{% if docker.makefile %}
.PHONY: docker-shell
docker-shell:
Expand Down
2 changes: 1 addition & 1 deletion src/mloq/assets/shared/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ build-backend = "setuptools.build_meta"
# Code coverage config
[tool.coverage.run]
branch = true
# source = ["src/{{lint.project_name}}"]
source = ["src/{{lint.project_name}}"]

[tool.coverage.report]
exclude_lines =["no cover",
Expand Down

0 comments on commit f8abc41

Please sign in to comment.