diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 000000000..630c8a529 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,11 @@ +[run] +omit = + */apps.py, + */migrations/*, + */settings*, + */test*, + */tests/*, + *urls.py, + */wsgi*, + manage.py, + *__init__* diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3264ad3d0..6bd5559d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: build: - if: github.repository_owner == 'TandoorRecipes' + if: github.repository_owner == 'smilerz' runs-on: ubuntu-latest strategy: max-parallel: 4 diff --git a/.gitignore b/.gitignore index 8c3a1d23c..d5f366efe 100644 --- a/.gitignore +++ b/.gitignore @@ -43,6 +43,8 @@ htmlcov/ nosetests.xml coverage.xml *,cover +*/coverage/ +*/tests/ # Django stuff: *.log diff --git a/pytest.ini b/pytest.ini index 79e7a4e2a..075ee1638 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,4 @@ [pytest] DJANGO_SETTINGS_MODULE = recipes.settings python_files = tests.py test_*.py *_tests.py +# addopts = --cov=. --cov-report=html:docs/coverage --cov-report=xml:docs/coverage/coverage.xml --junitxml=docs/tests/pytest.xml --html=docs/tests/tests.html