-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from ucbds-infra/fix-gs
- Loading branch information
Showing
66 changed files
with
546 additions
and
753 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ docs/_build | |
.Rhistory | ||
.ionide | ||
gs-testing-stuff | ||
.mypy.cache | ||
.mypy.cache | ||
.OTTER_LOG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: {{ otter_env_name }} | ||
channels: | ||
- defaults | ||
- conda-forge | ||
dependencies: | ||
- python=3.7 | ||
- pip | ||
- r-base | ||
- r-essentials | ||
- r-devtools | ||
- pip: | ||
- -r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,6 @@ | ||
#!/usr/bin/env python3 | ||
#!/usr/bin/env bash | ||
|
||
import os | ||
import subprocess | ||
|
||
from otter.generate.run_autograder import main as run_autograder | ||
|
||
config = { | ||
"score_threshold": {{ threshold }}, | ||
"points_possible": {{ points }}, | ||
"show_stdout_on_release": {{ show_stdout }}, | ||
"show_hidden_tests_on_release": {{ show_hidden }}, | ||
"seed": {{ seed }}, | ||
"grade_from_log": {{ grade_from_log }}, | ||
"serialized_variables": {{ serialized_variables }}, | ||
"public_multiplier": {{ public_multiplier }}, | ||
"token": {% if token %}'{{ token }}'{% else %}None{% endif %}, | ||
"course_id": '{{ course_id }}', | ||
"assignment_id": '{{ assignment_id }}', | ||
"filtering": {{ filtering }}, | ||
"pagebreaks": {{ pagebreaks }}, | ||
"debug": False, | ||
"autograder_dir": '{{ autograder_dir }}', | ||
"lang": '{{ lang }}', | ||
} | ||
|
||
if __name__ == "__main__": | ||
run_autograder(config) | ||
export PATH="/root/miniconda3/bin:$PATH" | ||
source /root/miniconda3/etc/profile.d/conda.sh | ||
conda activate otter-gradescope-env | ||
python {{ autograder_dir }}/source/run_otter.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
""" | ||
Runs Otter on Gradescope with the configurations specified below | ||
""" | ||
|
||
import os | ||
import subprocess | ||
|
||
from otter.generate.run_autograder import main as run_autograder | ||
|
||
config = { | ||
"score_threshold": {{ threshold }}, | ||
"points_possible": {{ points }}, | ||
"show_stdout_on_release": {{ show_stdout }}, | ||
"show_hidden_tests_on_release": {{ show_hidden }}, | ||
"seed": {{ seed }}, | ||
"grade_from_log": {{ grade_from_log }}, | ||
"serialized_variables": {{ serialized_variables }}, | ||
"public_multiplier": {{ public_multiplier }}, | ||
"token": {% if token %}'{{ token }}'{% else %}None{% endif %}, | ||
"course_id": '{{ course_id }}', | ||
"assignment_id": '{{ assignment_id }}', | ||
"filtering": {{ filtering }}, | ||
"pagebreaks": {{ pagebreaks }}, | ||
"debug": False, | ||
"autograder_dir": '{{ autograder_dir }}', | ||
"lang": '{{ lang }}', | ||
} | ||
|
||
if __name__ == "__main__": | ||
run_autograder(config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.