Skip to content

final challenge ?

final challenge ? #131

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: |
cd phase-1_2_3/
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 phase-1_2_3/starting_kit/
Rscript submission_script.R
- name: Prepare files by creating folder etc...
shell: bash
run: |
cd phase-1_2_3/
chmod +x prepare2score_locally.sh
sh prepare2score_locally.sh
ls test_output/*
- name: Running ingestion Program
run: |
# ls -rthl *
cd phase-1_2_3/
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: |
cd phase-1_2_3/
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