-
-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (41 loc) · 1.34 KB
/
smoke-test-r.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Smoke Test
on:
workflow_dispatch:
jobs:
test-package:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install system dependencies and R for macOS
if: matrix.os == 'macos-latest'
run: brew install xz
shell: bash
- name: Install system dependencies for Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y liblzma-dev libcurl4-openssl-dev
shell: bash
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
- name: Install R packages
run: |
install.packages(c("arrow", "nanoarrow"))
install.packages("exonr", repos = c("https://wheretrue.r-universe.dev", "https://cloud.r-project.org"))
shell: Rscript {0}
- name: Test exonr
shell: Rscript {0}
run: |
library(exonr)
# Read in an example file
batch_reader <- exonr::read_fasta_file("exon/exon-core/test-data/datasources/fasta/test.fasta")
# Convert to a data.frame
batch_df <- as.data.frame(batch_reader)
# Print the head of the dataframe
print(head(batch_df))