Skip to content

Commit

Permalink
chore: simplify CI workflow for testing R
Browse files Browse the repository at this point in the history
  • Loading branch information
kalekundert committed Aug 31, 2023
1 parent d0210b7 commit 4e3b684
Showing 1 changed file with 27 additions and 22 deletions.
49 changes: 27 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,28 +64,33 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
path: ~/work/_temp/Library
key: R-${{ runner.os }}-${{ matrix.R }}-${{ hashFiles('DESCRIPTION') }}
extra-packages: rcmdcheck remotes covr
working-directory: wellmapr
- uses: actions/setup-python@v4
- uses: r-lib/actions/setup-r@v2
- name: Install test dependencies (apt-get)
shell: bash
run: |
sudo apt-get install libcurl4-openssl-dev
- name: Install test dependencies (python)
shell: bash
run: |
which python
pip install numpy ..
pip freeze
- name: Install test dependencies (R)
run: |
install.packages(c("remotes", "rcmdcheck", "covr"))
remotes::install_deps(dependencies = TRUE)
- name: Run test suite
run: |
reticulate::py_config()
rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
with:
python-version: "3.x"
- uses: r-lib/actions/check-r-package@v2


# - name: Install test dependencies (apt-get)
# shell: bash
# run: |
# sudo apt-get install libcurl4-openssl-dev
# - name: Install test dependencies (python)
# shell: bash
# run: |
# which python
# pip install numpy ..
# pip freeze
# - name: Install test dependencies (R)
# run: |
# install.packages(c("remotes", "rcmdcheck", "covr"))
# remotes::install_deps(dependencies = TRUE)
# - name: Run test suite
# run: |
# reticulate::py_config()
# rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")

0 comments on commit 4e3b684

Please sign in to comment.