Skip to content

Commit 9411a91

Browse files
authored
Update unit test workflow configuration
1 parent 5d5eeae commit 9411a91

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/unittests.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
on:
2+
push:
23
workflow_dispatch:
34

4-
# on:
5-
# push:
6-
# paths: ['**.R', 'tests/**', '**.Rd', '**.c', '**.cpp', '**.h', '**.hpp', 'DESCRIPTION', 'NAMESPACE', 'MAKEVARS', 'MAKEVARS.win', '**.yml']
7-
# pull_request:
8-
# paths: ['**.R', 'tests/**', '**.Rd', '**.c', '**.cpp', '**.h', '**.hpp', 'DESCRIPTION', 'NAMESPACE', 'MAKEVARS', 'MAKEVARS.win']
9-
# schedule:
10-
# - cron: '13 12 * * 1-5'
5+
# once the module takes shape you may want to uncomment these lines
6+
#on:
7+
# push:
8+
# paths: ['**.R', 'tests/**', '**.Rd', '**.c', '**.cpp', '**.h', '**.hpp', 'DESCRIPTION', 'NAMESPACE', 'MAKEVARS', 'MAKEVARS.win', '**.yml']
9+
# pull_request:
10+
# paths: ['**.R', 'tests/**', '**.Rd', '**.c', '**.cpp', '**.h', '**.hpp', 'DESCRIPTION', 'NAMESPACE', 'MAKEVARS', 'MAKEVARS.win']
11+
# schedule:
12+
# - cron: '13 12 * * 1-5'
1113

1214
name: unit-tests
1315

1416
jobs:
17+
1518
unit-tests:
16-
uses: jasp-stats/jasp-actions/.github/workflows/unittests.yml@master
19+
# this ensures the action is not run twice when creating a pull request from within the same repository
20+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
21+
uses: jasp-stats/jasp-actions/.github/workflows/unittests.yml@v1
1722
with:
18-
needs_JAGS: false
19-
needs_igraph: false
23+
needs_JAGS: false

0 commit comments

Comments
 (0)