From 30ee6cfa60495e96a8d2a9d07f823d0fafe49554 Mon Sep 17 00:00:00 2001 From: zaid3727 Date: Tue, 2 Jul 2024 19:21:29 +0200 Subject: [PATCH] analysis-coverage --- .github/workflows/codacy-analysis.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codacy-analysis.yml b/.github/workflows/codacy-analysis.yml index 5ff6ece..b47fbad 100644 --- a/.github/workflows/codacy-analysis.yml +++ b/.github/workflows/codacy-analysis.yml @@ -1,6 +1,7 @@ name: Codacy Analysis -on: [pull_request] +on: + pull_request: jobs: codacy-analysis: @@ -16,20 +17,23 @@ jobs: python-version: "3.x" cache: "pip" - - name: Install dependencies + - name: Install dependencies and coverage run: | python -m pip install --upgrade pip pip install -r requirements.txt + pip install coverage + - name: Debug PATH + run: echo $PATH - name: Run tests and coverage run: | - pip install codacy-coverage coverage run -m pytest coverage xml -o coverage.xml + env: + CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} - name: Upload coverage to Codacy - run: | - python-codacy-coverage -r coverage.xml + run: python-codacy-coverage -r coverage.xml env: CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}