From e5159306e2a2f351d9d7e28363c70e6c043674c8 Mon Sep 17 00:00:00 2001 From: Adam Kirchberger Date: Fri, 25 Aug 2023 07:43:19 +0100 Subject: [PATCH] ci: update tests workflow --- .github/workflows/tests.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 894a5cf..bcbcbfc 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -7,7 +7,15 @@ on: pull_request: paths: - .github/workflows/tests.yaml - - fastapi-health-monitor/**/*.py + - fastapi_health_monitor/**/*.py + - tests/**/*.py + - poetry.lock + push: + branches: + - main + paths: + - .github/workflows/tests.yaml + - fastapi_health_monitor/**/*.py - tests/**/*.py - poetry.lock @@ -57,8 +65,8 @@ jobs: - name: Install dependencies run: poetry install - name: Test with pytest - run: poetry run pytest -v --cov=./ --cov-report=xml + run: poetry run pytest -v --cov=fastapi_health_monitor --cov-report=xml - name: Upload coverage - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }}