From 51c79a5cfbb2e0dfb78b006341a920f4c5dfb6f0 Mon Sep 17 00:00:00 2001 From: Sadra Yahyapour Date: Tue, 30 Apr 2024 22:36:49 +0330 Subject: [PATCH] triggering issue fixed --- .github/workflows/coverage.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 010c1bb..db74436 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,12 +1,29 @@ name: Updating the Codecov Report -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: jobs: run: runs-on: ubuntu-latest steps: - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4.0.1 + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: pip install pytest-cov + + - name: Run tests and collect coverage + run: pytest --cov app + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }}