From d8665539faaf949f4ef0c32187341b6b2fda08f0 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sun, 8 Oct 2023 19:15:48 +0200 Subject: [PATCH] test with pytest --- .github/workflows/python-tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 2b5b6c65..196ce8d2 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -34,6 +34,7 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with unittest + - name: Test with pytest run: | - python -m unittest tests/test_rendercv.py + pip install pytest pytest-cov + pytest tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html