diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index e3fe1a1..7c5df56 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ "main" ] + branches: [ "**" ] pull_request: - branches: [ "main" ] + branches: [ "**" ] jobs: build: @@ -28,7 +28,8 @@ jobs: pip install -r src/requirements.txt - name: Run tests with coverage run: | - pytest --cov=src --cov-report=xml --cov-report=term-missing src/tests + pytest --cov=src --cov-report=xml --cov-report=term-missing \ + --cov-fail-under=20 src/tests - name: Upload coverage report uses: actions/upload-artifact@v3 with: diff --git a/.gitignore b/.gitignore index 9c52ede..cd141a1 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,7 @@ Thumbs.db # Python env .env *.env + +# Coverage files +.coverage +coverage.xml