Skip to content

Commit

Permalink
fix dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
MLopez-Ibanez committed Nov 13, 2023
1 parent 3f10ad7 commit 4841106
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/R.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
with:
extra-packages: any::remotes, any::rcmdcheck
needs: check
working-directory: 'r'
working-directory: r

- name: Install macos dependencies
if: runner.os == 'macOS'
Expand All @@ -72,30 +72,32 @@ jobs:
env:
NOT_CRAN: false
run: |
setwd("r/")
options(crayon.enabled = TRUE)
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check", timeout = 360)
shell: Rscript {0}
working-directory: r

- name: Check (NOT CRAN)
if: success()
env:
NOT_CRAN: true
run: |
setwd("r/")
options(crayon.enabled = TRUE)
rcmdcheck::rcmdcheck(args = c("--no-manual", "--run-donttest", "--run-dontrun", "--timings"), error_on = "warning", check_dir = "check", timeout = 360)
shell: Rscript {0}
working-directory: r

- name: Show testthat output
if: failure()
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash
working-directory: r

- name: Install package
run: |
remotes::install_local("R", force = TRUE, upgrade = "never", build_manual = TRUE, build_vignettes = TRUE)
remotes::install_local(".", force = TRUE, upgrade = "never", build_manual = TRUE, build_vignettes = TRUE)
shell: Rscript {0}
working-directory: r

- name: Upload check results
if: failure()
Expand Down Expand Up @@ -135,7 +137,7 @@ jobs:
with:
extra-packages: any::rcmdcheck, local::.
needs: check
working-directory: 'r'
working-directory: r

- uses: r-lib/actions/run-rchk@v2
with:
Expand Down Expand Up @@ -208,13 +210,14 @@ jobs:
with:
extra-packages: any::pkgdown, local::.
needs: website
working-directory: 'r'
working-directory: r

- name: Deploy package Deploy 🚀
if: success() && runner.os == 'Linux' && matrix.config.r == 'release' && github.event_name == 'push'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
Rscript -e 'setwd("r/");pkgdown::deploy_to_branch(new_process = FALSE, run_dont_run = TRUE, subdir = "r")'
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE, run_dont_run = TRUE, subdir = "r")'
shell: bash {0}
working-directory: r

4 changes: 2 additions & 2 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,14 @@ jobs:

- name: Install dependencies
run: |
cd python
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
working-directory: python

- name: Run coverage using tox
run: |
cd python
tox -e coverage
working-directory: python

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 4841106

Please sign in to comment.