Skip to content

Commit

Permalink
analysis-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
zaid3727 committed Jul 2, 2024
1 parent 6f72ce5 commit 30ee6cf
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/codacy-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Codacy Analysis

on: [pull_request]
on:
pull_request:

jobs:
codacy-analysis:
Expand All @@ -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 }}

0 comments on commit 30ee6cf

Please sign in to comment.