Skip to content

Commit

Permalink
Update directories
Browse files Browse the repository at this point in the history
  • Loading branch information
isms committed Nov 22, 2023
1 parent 1886afd commit e3a1874
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ endif
${TTY_ARGS} \
${NETWORK_ARGS} \
--network none \
--mount type=bind,source="$(shell pwd)"/data,target=/data,readonly \
--mount type=bind,source="$(shell pwd)"/submission,target=/submission \
--mount type=bind,source="$(shell pwd)"/data,target=/code_execution/data,readonly \
--mount type=bind,source="$(shell pwd)"/submission,target=/code_execution/submission \
--shm-size 8g \
--name ${CONTAINER_NAME} \
--rm \
Expand Down
11 changes: 7 additions & 4 deletions runtime/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ main () {
fi

echo Unpacking submission
unzip ./submission/submission.zip -d ./src
unzip ./submission/submission.zip -d ./workdir

echo Printing submission contents
find src
find workdir

LOGURU_LEVEL=INFO sh main.sh
pushd workdir
sh main.sh
popd

pytest tests/test_submission
# test the submission
pytest tests/test_submission.py
}

main |& tee "/code_execution/submission/log.txt"
Expand Down
2 changes: 1 addition & 1 deletion runtime/tests/test_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import pytest

SUBMISSION_PATH = Path("/code_execution/submission/submission.csv")
SUBMISSION_PATH = Path("/code_execution/workdir/submission.csv")
CHECK_SUBMISSION = os.environ.get("CHECK_SUBMISSION", "false") == "true"


Expand Down

0 comments on commit e3a1874

Please sign in to comment.