Skip to content

Commit

Permalink
Update test-coverage.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
davidycliao committed Sep 20, 2024
1 parent a5d4f04 commit 37f0188
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/R-CMD-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ on:
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -39,7 +37,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.9' # Ensure Python 3.x is being used
python-version: '3.9'

- name: Check Python Version
run: python --version
Expand All @@ -49,17 +47,16 @@ jobs:
python -m pip install --upgrade pip
pip install flair
# Install R dependencies after Python
- name: Install R dependencies
run: |
install.packages('remotes', repos = 'https://cloud.r-project.org')
install.packages('remotes')
remotes::install_github("davidycliao/flaiR", force = TRUE)
shell: Rscript {0}

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck

# Specific steps for ubuntu-latest
- name: Setup Python (Only on ubuntu-latest)
if: matrix.config.os == 'ubuntu-latest'
uses: actions/setup-python@v2
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help


name: R-Python Integration and Test Coverage

on: [push, pull_request]
Expand Down Expand Up @@ -92,4 +90,4 @@ jobs:
_R_CHECK_SYSTEM_CLOCK_: FALSE
NOT_CRAN: true
pythonLocation: /opt/hostedtoolcache/Python/3.10.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.15/x64/lib
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.15/x64/lib

0 comments on commit 37f0188

Please sign in to comment.