Skip to content

Commit

Permalink
removed a logic error from develop and removed a seperate run of coda…
Browse files Browse the repository at this point in the history
…cy for master, since uploading the reports is enough.
  • Loading branch information
vogt31337 committed Jun 25, 2024
1 parent 2ecc87e commit 19b9e71
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ exclude_paths:
- 'tutorials/**'
- 'pandapipes/networks/network_files/**'
- '**.yml'
- '**.rst'
- 'coverage.xml'
- '.coverage'
- '**.rst'
2 changes: 1 addition & 1 deletion .github/workflows/run_tests_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
uses: codecov/codecov-action@v4
with:
verbose: true
dry_run: ${{ github.ref == 'refs/heads/develop' && 'false' || 'true' }}
dry_run: ${{ github.ref != 'refs/heads/develop' }}
exclude: |
'**/test/**'
'**/__init__.py'
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/run_tests_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ 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 @@ -55,6 +49,11 @@ 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'}}
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: bash <(curl -Ls https://coverage.codacy.com/get.sh)
- name: Upload coverage to Codecov
if: ${{ matrix.python-version == '3.9' }}
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit 19b9e71

Please sign in to comment.