Skip to content

Commit

Permalink
codacy complains about coverages files so we just ignore them.
Browse files Browse the repository at this point in the history
  • Loading branch information
vogt31337 committed Jun 25, 2024
1 parent 94c9eb0 commit 2ecc87e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ exclude_paths:
- 'pandapipes/networks/network_files/**'
- '**.yml'
- '**.rst'
- 'coverage.xml'
- '.coverage'
12 changes: 6 additions & 6 deletions .github/workflows/run_tests_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ jobs:
if: ${{ matrix.python-version != '3.9' }}
run: |
python -m pytest
- name: Upload coverage to Codacy
if: ${{ matrix.python-version == '3.9' && matrix.os == 'ubuntu-latest'}}
uses: codacy/codacy-analysis-cli-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
upload: true
- name: Test with numba
if: ${{ matrix.python-version == '3.11' }}
run: |
Expand All @@ -49,12 +55,6 @@ jobs:
run: |
python -m pip install pytest-cov
python -m pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codacy
if: ${{ matrix.python-version == '3.9' && matrix.os == 'ubuntu-latest'}}
uses: codacy/codacy-analysis-cli-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
upload: true
- name: Upload coverage to Codecov
if: ${{ matrix.python-version == '3.9' }}
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit 2ecc87e

Please sign in to comment.