File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ name: "Calibrations (nightly)"
3
3
on :
4
4
schedule :
5
5
- cron : 31 2 * * *
6
+ pull_request :
7
+ branches : " master"
6
8
7
9
jobs :
8
10
version-matrix :
Original file line number Diff line number Diff line change 61
61
- name : Generate environment variables
62
62
id : vars
63
63
run : |
64
- SHA=${{ inputs.commit }}
64
+ SHA="mg/calibration-mod2"
65
65
ENV="/mnt/tlo/env-healthsystem-mode${{ inputs.hs_mode }}-${SHA}"
66
66
if [[ -d "${ENV}" ]]; then
67
67
echo "Virtual environment directory ${ENV} already exists, leaving..."
85
85
run : |
86
86
# If the repository doesn't exist on disk, clone it.
87
87
if [[ ! -d "${REPO_PATH}" ]]; then
88
- git clone --depth=1 --branch="${{ github.ref_name }}" " https://github.com/${{ github.repository }} .git" "${REPO_PATH}"
88
+ git clone --depth=1 " https://github.com/giordano/TLOmodel .git" "${REPO_PATH}"
89
89
fi
90
90
# In any case, fetch the requested commit.
91
91
git -C "${REPO_PATH}" fetch --depth=1 origin "${SHA}"
@@ -166,7 +166,7 @@ jobs:
166
166
task_output_dir="${{ needs.setup.outputs.output_dir }}/${RUN_NAME}/${draw}/${{ matrix.index }}"
167
167
mkdir -p "${task_output_dir}"
168
168
169
- tlo scenario-run --output-dir "${task_output_dir}" --draw "${draw}" ${{ matrix.index }} "${{ needs.setup.outputs.worktree_path }}/src/scripts/calibration_analyses/scenarios/long_run_all_diseases.py" --healthsystem-mode ${{ inputs.hs_mode }}
169
+ tlo scenario-run --output-dir "${task_output_dir}" --draw "${draw}" ${{ matrix.index }} "${{ needs.setup.outputs.worktree_path }}/src/scripts/calibration_analyses/scenarios/long_run_all_diseases.py" --healthsystem-mode ${{ inputs.hs_mode }} --end-date '2011-01-01'
170
170
working-directory : " ${{ needs.setup.outputs.worktree_path }}"
171
171
172
172
# Do the postprocessing
You can’t perform that action at this time.
0 commit comments