Skip to content
Open
Changes from 10 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
024afdf
CI(macOS): Add Codecov upload step to macOS workflow
echoix Apr 18, 2025
d80d997
CI(macOS): Add pytest-cov to macOS workflow configuration
echoix Apr 18, 2025
93f6ae6
CI(macOS): Add script to fix coverage data paths
echoix Apr 18, 2025
c76e37e
install coverage
echoix Apr 18, 2025
145c6ce
CI(macOS): Use micromamba-shell for coverage mapping
echoix Apr 18, 2025
d71c776
Add artifact upload step for coverage report
echoix Apr 18, 2025
991187d
CI(macOS): Create json coverage file to upload
echoix Apr 18, 2025
d7c83eb
Remove redundant flag from codecov upload
echoix Apr 18, 2025
04f549c
CI(deps): Update codecov/codecov-action action to v5.4.3
echoix Apr 18, 2025
75ed913
Merge branch 'main' into macos-coverage-codecov-03
echoix Oct 9, 2025
3971b27
Apply updates for new runner and action version
echoix Oct 9, 2025
4ef0bbd
Update macos.yml
echoix Oct 9, 2025
002d18c
CI(macOS): Pre-download codecov cli
echoix Oct 9, 2025
c9401b4
Hide exit code from codecov cli help as makes step fail
echoix Oct 9, 2025
6a6fc2d
Update macos.yml
echoix Oct 9, 2025
dcd9edf
Update macos.yml
echoix Oct 9, 2025
a999fbe
CI(macOS): Disable codecov-action, use codecov-cli with upload-process
echoix Oct 9, 2025
bc54a18
Update Codecov upload process in macOS workflow
echoix Oct 9, 2025
f4cecf0
Remove auto-load-params-from option in workflow
echoix Oct 9, 2025
a804b33
Remove codecov-action for macOS
echoix Oct 10, 2025
768d300
Clean up codecov cli step
echoix Oct 10, 2025
73e0f42
Upload test results to Codecov earlier
echoix Oct 10, 2025
c717ab2
CI(macOS): Clone codecov-action and integrate local copy of action.ym…
echoix Oct 10, 2025
e048274
Add gnupg to macOS workflow dependencies
echoix Oct 10, 2025
c0a79b4
Update macOS workflow configuration file
echoix Oct 10, 2025
c4a0e25
Try fixing syntax
echoix Oct 10, 2025
11eec5e
Try fixing syntax again
echoix Oct 10, 2025
425d8f4
Remove redundant Codecov flags from macOS workflow
echoix Oct 10, 2025
f34e6a5
Fix indent
echoix Oct 10, 2025
3aeea06
clean codecov action
echoix Oct 10, 2025
81eba98
Fix yamllint errors
echoix Oct 10, 2025
3d3c495
Update comment for yamllint in macos.yml
echoix Oct 10, 2025
c68ef98
Add space after commented-out code
echoix Oct 10, 2025
d37e95a
Disable line length check and reenable later
echoix Oct 10, 2025
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
36 changes: 36 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ jobs:
test_dependencies: |
ipython
pytest
coverage
pytest-cov
pytest-github-actions-annotate-failures
pytest-timeout
pytest-xdist
Expand Down Expand Up @@ -109,10 +111,15 @@ jobs:
run: |
PYTHONPATH="$(grass --config python_path):${PYTHONPATH}"
LD_LIBRARY_PATH="$(grass --config path)/lib:${LD_LIBRARY_PATH}"
INITIAL_GISBASE="$(grass --config path)"
INITIAL_PWD="${PWD}"
export PYTHONPATH
export LD_LIBRARY_PATH
export INITIAL_GISBASE
export INITIAL_PWD
pytest \
@.github/workflows/pytest_args_ci.txt \
@.github/workflows/pytest_args_cov.txt \
@.github/workflows/pytest_args_not_parallel.txt \
--junitxml=pytest.needs_solo_run.junit.xml \
-k 'not testsuite'
Expand All @@ -126,6 +133,35 @@ jobs:
pytest \
@.github/workflows/pytest_args_gunittest.txt \
--junitxml=pytest.gunittest.junit.xml
- name: Fix non-standard installed script paths in coverage data
shell: micromamba-shell {0}
run: |
PYTHONPATH=$(grass --config python_path):$PYTHONPATH
LD_LIBRARY_PATH=$(grass --config path)/lib:$LD_LIBRARY_PATH
INITIAL_GISBASE="$(grass --config path)"
INITIAL_PWD="${PWD}"
export PYTHONPATH
export LD_LIBRARY_PATH
export INITIAL_GISBASE
export INITIAL_PWD
python utils/coverage_mapper.py
coverage combine
coverage html
coverage json
- name: Make python-only code coverage test report available
if: ${{ !cancelled() }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: >-
python-codecoverage-report-${{ 'macos-14' }}
path: coverage_html_report
retention-days: 1
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
with:
verbose: true
flags: pytest-macos-14
name: pytest-macos-14

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
Expand Down
Loading