bugfix for no detectable python config #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
name: test-coverage | |
jobs: | |
test-coverage: | |
runs-on: macOS-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' # Version range or exact version of a Python version to use, using SemVer's version range syntax | |
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: "release" | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- name: Install system dependencies (macOS) | |
if: runner.os == 'macOS' | |
run: | | |
brew install pkg-config | |
brew install gdal | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::covr | |
- name: Install Python dependencies | |
run: | | |
reticulate::virtualenv_create("r-reticulate") | |
reticulate::virtualenv_install("r-reticulate", "rosetta-soil") | |
shell: Rscript {0} | |
- name: Test coverage | |
run: covr::codecov() | |
shell: Rscript {0} |