Add conftest.py in order to fix pytest loading issues.

This commit is contained in:
Martin Liska 2021-08-15 18:32:09 +02:00
parent feb2f75e5d
commit 77550f9244
3 changed files with 3 additions and 1 deletions

View File

@ -90,7 +90,7 @@ jobs:
if: ${{ contains(matrix.docker, 'fedora') }}
- run: pip install coveralls
- uses: actions/checkout@v2
- run: python3 -m pytest
- run: pytest
- run: python3 -m cProfile -o profile.stats lint.py -V test/source/* test/binary/* > /dev/null
- run: python3 test/dump_stats.py profile.stats
- name: Collect the coveralls report

View File

@ -1,6 +1,7 @@
include Makefile
include COPYING
include README.md
include conftest.py
recursive-include configs *.toml
recursive-include rpmlint *.toml
recursive-include test *

1
conftest.py Normal file
View File

@ -0,0 +1 @@
# Having this file, pytest will add project root to sys.path.