Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ jobs:
python -m pip install -e .[dev]
- name: Run unit tests and store coverage
run: |
# [!] Note that sonarcloud runs the full test suite
coverage run -m pytest -n auto
coverage report -m
coverage xml -o coverage.xml
# [!] Note that sonarcloud runs the fast test suite
pytest --fast -n auto --cov=src --cov-report=xml:coverage.xml --cov-report=term-missing
- name: Make coverage paths relative
run: sed -i "s+$PWD/++g" coverage.xml
- name: SonarQube Scan
Expand Down
1 change: 0 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ sonar.links.scm=git@github.com:WUR-AI/diffwofost
sonar.links.issue=https://github.com/WUR-AI/diffwofost/issues
sonar.links.ci=https://github.com/WUR-AI/diffwofost/actions
sonar.python.coverage.reportPaths=coverage.xml
sonar.coverage.exclusions=src/diffwofost/physical_models/crop/evapotranspiration.py,src/diffwofost/physical_models/utils.py
Loading