Skip to content

Commit bb3e0ae

Browse files
committed
run tests gh actions.
1 parent 810defb commit bb3e0ae

25 files changed

+4209
-143
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 0 additions & 76 deletions
This file was deleted.

.github/workflows/render-vignettes.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/tests.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
name: tests
10+
11+
jobs:
12+
tests:
13+
runs-on: ${{ matrix.config.os }}
14+
15+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
config:
21+
- {os: ubuntu-latest, r: 'release'}
22+
23+
env:
24+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
25+
R_KEEP_PKG_SOURCE: yes
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- uses: r-lib/actions/setup-pandoc@v2
31+
32+
- uses: r-lib/actions/setup-r@v2
33+
with:
34+
r-version: ${{ matrix.config.r }}
35+
extra-repositories: 'https://mc-stan.org/r-packages/'
36+
http-user-agent: ${{ matrix.config.http-user-agent }}
37+
use-public-rspm: true
38+
39+
- uses: r-lib/actions/setup-r-dependencies@v2
40+
with:
41+
extra-packages: |
42+
any::cmdstanr
43+
any::testthat
44+
local::.
45+
46+
- name: Install CmdStan
47+
shell: Rscript {0}
48+
run: |
49+
cmdstanr::check_cmdstan_toolchain(fix = TRUE)
50+
cmdstanr::install_cmdstan()
51+
52+
- name: Run tests
53+
run: |
54+
testthat::test_dir("tests/testthat", reporter = "summary")
55+
shell: Rscript {0}

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,4 @@ inst/stan/**/*.EXE
1010
*.dll
1111
*.Rproj
1212
*_cache/
13-
*_files/
1413
.DS_Store
15-
*.html

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SHADE: Spatial Hierarchical Asymmetry via Directional Estimation
22

33
<!-- badges: start -->
4-
[![R-CMD-check](https://github.com/jeliason/SHADE/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jeliason/SHADE/actions/workflows/R-CMD-check.yaml)
4+
[![tests](https://github.com/jeliason/SHADE/actions/workflows/tests.yaml/badge.svg)](https://github.com/jeliason/SHADE/actions/workflows/tests.yaml)
55
<!-- badges: end -->
66

77
SHADE is an R package for modeling asymmetric spatial associations between cell types in tissue images using a multilevel Bayesian framework.

src/Makevars

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +0,0 @@
1-
# Settings from /etc/R/Makeconf with "non-portable flag(s):"
2-
# ‘-Wdate-time’ ‘-Werror=format-security’ ‘-Wformat’ replaced by -Wall -pedantic
3-
# and without -fdebug-prefix-map=...
4-
CFLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 $(LTO)
5-
CXXFLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 $(LTO)
6-
CXX98FLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2
7-
CXX11FLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2
8-
CXX14FLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2
9-
CXX17FLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2

0 commit comments

Comments
 (0)