diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ea42f32b1d..9f3349a70b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -7,6 +7,7 @@ on: paths: - 'numba_dpex/**' - environment/coverage.yml + - pyproject.toml jobs: main: @@ -52,7 +53,7 @@ jobs: - name: Run tests with coverage run: | - pytest -q -ra --disable-warnings --cov --cov-report term-missing --pyargs numba_dpex -vv + pytest -q --cov --cov-report term-missing --pyargs numba_dpex - name: Install coveralls shell: bash -l {0} diff --git a/pyproject.toml b/pyproject.toml index 7cd918c47b..10d25af87c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,6 +43,7 @@ exclude_lines = [ VCS = "git" style = "pep440" versionfile_source = "numba_dpex/_version.py" +versionfile_build = "numba_dpex/_version.py" parentdir_prefix = "" [tool.pylint] @@ -60,3 +61,19 @@ requires = [ "versioneer-518" ] build-backend = "setuptools.build_meta" + +[tool.pytest.ini_options] +minversion = "6.0" +norecursedirs= [ + ".*", "*.egg*", "build", "dist", "conda-recipe", +] +xfail_strict = true +addopts = [ + "--disable-warnings", + "--strict", + "--durations=20", + "-ra -vv", +] +testpaths = [ + "numba_dpex/tests" +] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 80fe26dddc..0000000000 --- a/setup.cfg +++ /dev/null @@ -1,22 +0,0 @@ - -# See the docstring in versioneer.py for instructions. Note that you must -# re-run 'versioneer.py setup' after changing this section, and commit the -# resulting files. - -[versioneer] -VCS = git -style = pep440 -versionfile_source = numba_dpex/_version.py -versionfile_build = numba_dpex/_version.py -tag_prefix = -#parentdir_prefix = - -[tool:pytest] -xfail_strict=true -addopts = - --cov - --cov-report term - ; --cov-report xml - ; --cov-report html - ; --cov-context test - ; --cov-append