diff --git a/.gitea/workflows/python-test.yml b/.gitea/workflows/python-test.yml index 184493a..d617118 100644 --- a/.gitea/workflows/python-test.yml +++ b/.gitea/workflows/python-test.yml @@ -19,10 +19,14 @@ jobs: uses: actions/checkout@v3 - name: Installing Python Dependencies if: success() - run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest --break-system-packages + run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest pytest-cov --break-system-packages - name: Installing Python Test Dependencies if: success() && hashFiles('requirements_test.txt') != '' run: python3 -m pip install --upgrade -r requirements_test.txt --break-system-packages - name: Installing package if: success() run: python3 -m pip install .[test] --break-system-packages + - name: Test Python Code + if: success() + run: python3 -m pytest test --cov=fin_depo --cov-report html:htmlcov --cov-fail-under=0 + - name: Upload artifact