1111
1212env :
1313 REGISTRY : ghcr.io
14- UV_VERSION : 0.7
14+ UV_VERSION : 0.9
1515 PYTHON_VERSION : 3.12
16- JUPYTER_VERSION : " 2025-04-14"
16+ JUPYTER_VERSION : 2025-04-14
1717 IMAGE_PREFIX : /jupyter
1818 SERVICES : jupyter
1919 SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYNXTOOLS_SPM : " 0.0.0+0.UNKNOWN"
20- TEST_DATA_DIR : $(pwd)/src/pynxtools_spm/nomad/example_uploads
21-
20+ # Upload to Jupyter image build
21+ EXAMPLES_DIR : $(pwd)/src/pynxtools_spm/north_tools/spm_jupyter/examples
22+ # Data for testing notebooks in Jupyter image
23+ TEST_DATA_DIR : $(pwd)/src/pynxtools_spm
2224 # Path w.r.t. TEST_DATA_DIR multi-line in single string
23- TEST_NOTEBOOKS : afm/AFMExampleWithCustomization/CommandLineDataconverter.ipynb
24- stm/STMExampleWithCustomization/CommandLineDataconverter.ipynb
25- sts/STSExampleWithCustomization/CommandLineDataconverter.ipynb
25+ TEST_NOTEBOOKS :
26+ nomad/example_uploads/afm/AFMExampleWithCustomization/CommandLineDataconverter.ipynb
27+ nomad/example_uploads/stm/STMExampleWithCustomization/CommandLineDataconverter.ipynb
28+ nomad/example_uploads/sts/STSExampleWithCustomization/CommandLineDataconverter.ipynb
29+ north_tools/spm_jupyter/examples/stm/CommandLineDataconverter_STM.ipynb
2630
2731permissions :
2832 packages : write
6367 VERSION=$(./scripts/get_git_version.sh)
6468 echo "Computed version: $VERSION"
6569 echo "SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYNXTOOLS_SPM=$VERSION" >> "$GITHUB_ENV"
66- echo "Env variable: ${{ env.SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYNXTOOLS_SPM }}"
67- - name : All the available variables from env
68- run : |
69- echo "UV_VERSION=${{ env.UV_VERSION }}"
70- echo "PYTHON_VERSION=${{ env.PYTHON_VERSION }}"
71- echo "JUPYTER_VERSION=${{ env.JUPYTER_VERSION }}"
72- echo "SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYNXTOOLS_SPM=${{ env.SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYNXTOOLS_SPM }}"
7370 - uses : docker/setup-buildx-action@v3
7471 # https://github.com/docker/metadata-action
7572 - name : Extract Docker metadata
@@ -92,12 +89,13 @@ jobs:
9289 uses : docker/build-push-action@v6
9390 with :
9491 context : .
95- file : Dockerfile
92+ file : docker/ Dockerfile.jupyter
9693 build-args : |
9794 UV_VERSION=${{ env.UV_VERSION }}
9895 PYTHON_VERSION=${{ env.PYTHON_VERSION }}
9996 JUPYTER_VERSION=${{ env.JUPYTER_VERSION }}
10097 SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYNXTOOLS_SPM=${{ env.SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYNXTOOLS_SPM }}
98+ EXAMPLES_DIR=${{ env.EXAMPLES_DIR }}
10199 cache-from : type=gha
102100 cache-to : type=gha,mode=max
103101 push : false
0 commit comments