diff options
author | Andi Albrecht <albrecht.andi@gmail.com> | 2021-09-10 09:29:10 +0200 |
---|---|---|
committer | Andi Albrecht <albrecht.andi@gmail.com> | 2021-09-10 09:29:10 +0200 |
commit | 611c91d58342593d31136c84d12576ca5367b32c (patch) | |
tree | 120ff11e77994b43eb150de3f5ebbcaa9422a039 | |
parent | d5165aef8187c9a8560905a647780a0b9f6d7b7f (diff) | |
download | sqlparse-611c91d58342593d31136c84d12576ca5367b32c.tar.gz |
CI: Publish code coverage.
-rw-r--r-- | .github/workflows/python-app.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 0659236..c959087 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest + pip install flake8 pytest pytest-cov codecov if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | @@ -36,4 +36,7 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics sqlparse - name: Test with pytest run: | - pytest + pytest --cov=sqlparse + - name: Publish to codecov + run: | + codecov |