-
Notifications
You must be signed in to change notification settings - Fork 7
60 lines (54 loc) · 1.68 KB
/
Copy pathmemcheck.yml
File metadata and controls
60 lines (54 loc) · 1.68 KB
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
53
54
55
56
57
58
59
60
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
push:
branches:
- main
- master
- '**valgrind**'
paths:
- '.github/workflows/memcheck.yml'
- 'src/**'
- 'inst/include/**'
- 'memcheck/**'
- 'tests/testthat/**.R'
- 'vignettes/**.Rmd'
pull_request:
branches:
- main
- master
paths:
- '.github/workflows/memcheck.yml'
- 'src/**'
- 'inst/include/**'
- 'memcheck/**'
- 'tests/testthat/**.R'
- 'vignettes/**.Rmd'
name: mem-check
jobs:
mem-check:
runs-on: ubuntu-24.04
name: valgrind ${{ matrix.config.test }}
strategy:
fail-fast: false
matrix:
config:
- {test: 'tests'}
- {test: 'examples'}
- {test: 'vignettes'}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
_R_CHECK_FORCE_SUGGESTS_: false
RSPM: https://packagemanager.rstudio.com/cran/__linux__/noble/latest
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
ASAN_OPTIONS: verify_asan_link_order=0
# Signals to the test suite that it is running under valgrind, so heavy
# scale-only tests can be skipped: valgrind's ~30x slowdown makes them the
# dominant cost while adding no memory-bug coverage beyond the small cases.
# Distinct from USING_ASAN, which suppresses deliberate-bad-input error
# tests that ASan (but not valgrind) aborts on.
TESTING_MEMCHECK: true
steps:
- uses: ms609/actions/memcheck@main
with:
test: ${{ matrix.config.test}}