You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated workflows/actions to dynamically generate an .env file (#552)
* Updated store-credentials-in-env-file.qmd
* Added Enable monitoring edge case
* Pulled in the working tests from beck/no-changed-notebooks
* Duplicated workflow & actions to staging & prod
* Updating workflows to check against the correct branches
* Adding Make command
* Retrieving latest from validmind-library
Copy file name to clipboardExpand all lines: .github/actions/demo-notebook/action.yml
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,10 @@
1
1
name: Execute demo notebook
2
2
description: Installs python3, validmind, checks dependencies then executes ONLY the Intro for Model Developers notebook with development heap tracking
3
3
4
-
inputs: {}
4
+
inputs:
5
+
env_file:
6
+
description: "Load the created .env file"
7
+
required: true
5
8
6
9
runs:
7
10
using: "composite"
@@ -26,10 +29,21 @@ runs:
26
29
pip install pycairo
27
30
pip check
28
31
32
+
- name: Ensure .env file is available
33
+
shell: bash
34
+
id: find_env
35
+
run: |
36
+
if [ ! -f "${{ inputs.env_file }}" ]; then
37
+
echo "Error: .env file not found at ${{ inputs.env_file }}"
38
+
exit 1
39
+
fi
40
+
29
41
- name: Execute ONLY the Intro for Model Developers notebook with heap development
30
42
shell: bash
43
+
if: ${{ steps.find_env.outcome == 'success' }}
31
44
run: |
32
45
cd site
46
+
source ../${{ inputs.env_file }}
33
47
quarto render --profile exe-demo notebooks/tutorials/intro_for_model_developers_EXECUTED.ipynb &> render_errors.log || {
34
48
echo "Execute for intro_for_model_developers_EXECUTED.ipynb failed";
0 commit comments