-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (39 loc) · 1.42 KB
/
ci.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
name: R CI release
on: [push, pull_request]
jobs:
build:
runs-on: Ubuntu-latest
strategy:
matrix:
include:
- name: latest
cntr: uscbiostats/slurmr:rcmdcheck
steps:
- uses: actions/checkout@v2
- name: Setting up the environment
run: docker pull ${{ matrix.cntr }}
- name: Running the check
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
cd docker
make check
# # COVERAGE FOR THE FUTURE (RIGHT NOW WE HAVE SSH PROBLEMS)
# - name: Coverage
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# run: |
# cd docker
# chmod 600 id_rsa
# docker run \
# -e GITHUB_ACTION=$GITHUB_ACTION \
# -e GITHUB_REPOSITORY=$GITHUB_REPOSITORY \
# -e GITHUB_REF=$GITHUB_REF \
# -e GITHUB_HEAD_REF=$GITHUB_HEAD_REF \
# -e GITHUB_RUN_ID=$GITHUB_RUN_ID \
# -e GITHUB_SHA=$GITHUB_SHA \
# -e CODECOV_TOKEN=$CODECOV_TOKEN --detach --publish 10022:22 \
# -v$(PWD)/..:/home/xenon/slurmR -w/home/xenon uscbiostats/slurmr:interactive
# echo "Waiting a few seconds..." & sleep 5 && \
# ssh -p 10022 -i id_rsa UserKnownHostsFile=/github/home/.ssh/known_hosts \
# xenon@localhost 'cd /home/slurmr-test/ && Rscript -e "covr::codecov(\"/home/xenon/slurmR\", quiet = FALSE)"'