diff --git a/.github/workflows/build_lint_test.yml b/.github/workflows/build_lint_test.yml index 4d4640f..eb9a69c 100644 --- a/.github/workflows/build_lint_test.yml +++ b/.github/workflows/build_lint_test.yml @@ -18,6 +18,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + pip install coverage if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | @@ -27,4 +28,6 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - pytest + coverage run -m unittest + - name: Upload Coverage to Codecov + uses: codecov/codecov-action@v2