diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 000000000..d057a8b57 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +omit = test/* diff --git a/.github/workflows/pythonpackage_future3.yml b/.github/workflows/pythonpackage_future3.yml index 3834d83db..f2174d0c0 100644 --- a/.github/workflows/pythonpackage_future3.yml +++ b/.github/workflows/pythonpackage_future3.yml @@ -39,9 +39,9 @@ jobs: pip3 install -r src/jukebox/components/rfid/hardware/pn532_i2c_py532/requirements.txt pip3 install -r src/jukebox/components/rfid/hardware/rdm6300_serial/requirements.txt pip3 install -r src/jukebox/components/rfid/hardware/rc522_spi/requirements.txt - - name: Run pytest + - name: Run pytest with coverage run: | - ./run_pytest.sh --cov --cov-report xml + ./run_pytest.sh --cov --cov-report xml --cov-config=.coveragerc - name: Report to Coveralls (parallel) uses: coverallsapp/github-action@v2 with: diff --git a/src/jukebox/misc/loggingext.py b/src/jukebox/misc/loggingext.py index 771248d8f..9328cfea8 100644 --- a/src/jukebox/misc/loggingext.py +++ b/src/jukebox/misc/loggingext.py @@ -1,7 +1,6 @@ """ ############## Logger - ############## We use a hierarchical Logger structure based on pythons logging module. It can be finely configured with a yaml file.