-
Notifications
You must be signed in to change notification settings - Fork 2
79 lines (58 loc) · 2.25 KB
/
submission_on_docker.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Docker Image CI
on:
push:
branches: [ "main","multi_phase_tasks" ]
pull_request:
branches: [ "main","multi_phase_tasks" ]
env:
docker_name: hombergn/hadaca3_pyr
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# r-version: ['3.6.3', '4.1.1']
r-version: ['4.1.1']
steps:
- uses: actions/checkout@v4
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
- name: Check Data Generation
run: |
chmod +x generate_data.sh
sh generate_data.sh
# - name: Build the Docker image
# run: |
# cd docker/codabench_hadaca3_light
# docker build -t hombergn/hadaca3_light .
# cd -
- name: Create submission program R
run: |
cd starting_kit/
Rscript submission_script.R
cd ..
- name: Prepare files by creating folder etc...
shell: bash
run: |
chmod +x prepare2score_locally.sh
sh prepare2score_locally.sh
ls test_output/*
- name: Running ingestion Program
run: |
# ls -rthl *
docker run --rm -v $PWD/ingestion_program:/app/program -v $PWD/test_output/res:/app/output -v $PWD/starting_kit/submissions:/app/ingested_program -w /app/program -v $PWD/input_data/:/app/input_data/ $docker_name Rscript /app/program/ingestion.R /app/program /app/input_data /app/output /app/ingested_program
# ls -rthl test_output/*
- name: Running Scoring Program
run: |
docker run --rm -v $PWD/scoring_program:/app/program -v $PWD/test_output:/app/output -w /app/program -v $PWD/test_output:/app/input $docker_name Rscript /app/program/scoring.R /app/input /app/output /app/program
# ls -rthl test_output/*
# - name: Install dependencies
# shell: Rscript {0}
# run: |
# install.packages(c("remotes", "rcmdcheck"))
# remotes::install_deps(dependencies = TRUE)
# - name: Check Rsript
# shell: Rscript {0}
# run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")ll