Skip to content

Commit 2215619

Browse files
committed
[CI] Test run
TODO: drop this commit before merging
1 parent 0ad3508 commit 2215619

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/calibrations.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: "Calibrations (nightly)"
33
on:
44
schedule:
55
- cron: 31 2 * * *
6+
pull_request:
7+
branches: "master"
68

79
jobs:
810
version-matrix:

.github/workflows/calibrations_common.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
- name: Generate environment variables
6262
id: vars
6363
run: |
64-
SHA=${{ inputs.commit }}
64+
SHA="mg/calibration-mod2"
6565
ENV="/mnt/tlo/env-healthsystem-mode${{ inputs.hs_mode }}-${SHA}"
6666
if [[ -d "${ENV}" ]]; then
6767
echo "Virtual environment directory ${ENV} already exists, leaving..."
@@ -85,7 +85,7 @@ jobs:
8585
run: |
8686
# If the repository doesn't exist on disk, clone it.
8787
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}"
8989
fi
9090
# In any case, fetch the requested commit.
9191
git -C "${REPO_PATH}" fetch --depth=1 origin "${SHA}"
@@ -166,7 +166,7 @@ jobs:
166166
task_output_dir="${{ needs.setup.outputs.output_dir }}/${RUN_NAME}/${draw}/${{ matrix.index }}"
167167
mkdir -p "${task_output_dir}"
168168
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'
170170
working-directory: "${{ needs.setup.outputs.worktree_path }}"
171171

172172
# Do the postprocessing

0 commit comments

Comments
 (0)