diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index ff1468d..fc73d3a 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -27,7 +27,19 @@ jobs: run: | python -m pip install --upgrade pip pip install pytest + pip install pytest-cov if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Test with pytest run: | - pytest smartem/ + pytest smartem/ --cov=smartem/ --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + directory: ./coverage/reports/ + env_vars: OS,PYTHON + fail_ci_if_error: true + files: ./coverage1.xml,./coverage2.xml,!./cache + flags: unittests + name: codecov-umbrella + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true