Skip to content

Commit

Permalink
chore: remove dependency for gencode file from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shihabdider committed Jun 14, 2023
1 parent 5e4d4fe commit c81dd8f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 14 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ jobs:
run: |
Rscript -e "if (!requireNamespace('remotes', quietly = TRUE)) install.packages('remotes')"
Rscript -e "remotes::install_github('mskilab/gGnome', upgrade = 'never')"
Rscript -e "remotes::install_github('mskilab/skidb', upgrade = 'never')"
- name: Setup data for tests
run: |
mkdir -p ~/DB/GENCODE
cp inst/extdata/test_data/gencode.v19.annotation.gtf.gr.rds ~/DB/GENCODE/gencode.v19.annotation.gtf.gr.rds
- name: Test coverage
run: covr::codecov(token = Sys.getenv("CODECOV_TOKEN"))
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/test-only.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ jobs:
run: |
Rscript -e "if (!requireNamespace('remotes', quietly = TRUE)) install.packages('remotes')"
Rscript -e "remotes::install_github('mskilab/gGnome', upgrade = 'never')"
Rscript -e "remotes::install_github('mskilab/skidb', upgrade = 'never')"
- name: Setup data for tests
run: |
mkdir -p ~/DB/GENCODE
cp inst/extdata/test_data/gencode.v19.annotation.gtf.gr.rds ~/DB/GENCODE/gencode.v19.annotation.gtf.gr.rds
- name: Run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion R/gTrack.R
Original file line number Diff line number Diff line change
Expand Up @@ -2116,7 +2116,7 @@ track.gencode = function(gencode = NULL,
}

if (is.null(gencode))
gencode = skidb::read_gencode()
gencode = readRDS(gzcon(url('http://mskilab.com/gTrack/hg19/gencode.v19.annotation.gtf.gr.rds')))

if (is.character(gencode))
{
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/testthat/test_gTrack.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ create_test_data <- function() {
)
}

options(timeout = 60)
options(timeout = 120)
test_data <- create_test_data()

test_that("GRanges and gTrack constructors work as expected", {
Expand Down

0 comments on commit c81dd8f

Please sign in to comment.